Migrating more Macro files to Abstractions or Infrastructure
This commit is contained in:
+4
-4
@@ -10,7 +10,7 @@ namespace Umbraco.Web.Macros
|
||||
/// <summary>
|
||||
/// Parses the macro syntax in a string and renders out it's contents
|
||||
/// </summary>
|
||||
internal class MacroTagParser
|
||||
public class MacroTagParser
|
||||
{
|
||||
private static readonly Regex MacroRteContent = new Regex(@"(<!--\s*?)(<\?UMBRACO_MACRO.*?/>)(\s*?-->)",
|
||||
RegexOptions.Compiled | RegexOptions.IgnoreCase | RegexOptions.CultureInvariant | RegexOptions.Singleline);
|
||||
@@ -35,7 +35,7 @@ namespace Umbraco.Web.Macros
|
||||
/// {/div}
|
||||
///
|
||||
/// </remarks>
|
||||
internal static string FormatRichTextPersistedDataForEditor(string persistedContent, IDictionary<string ,string> htmlAttributes)
|
||||
public static string FormatRichTextPersistedDataForEditor(string persistedContent, IDictionary<string ,string> htmlAttributes)
|
||||
{
|
||||
return MacroPersistedFormat.Replace(persistedContent, match =>
|
||||
{
|
||||
@@ -92,7 +92,7 @@ namespace Umbraco.Web.Macros
|
||||
/// since this is exactly how we need to persist it to the db.
|
||||
///
|
||||
/// </remarks>
|
||||
internal static string FormatRichTextContentForPersistence(string rteContent)
|
||||
public static string FormatRichTextContentForPersistence(string rteContent)
|
||||
{
|
||||
if (string.IsNullOrEmpty(rteContent))
|
||||
{
|
||||
@@ -145,7 +145,7 @@ namespace Umbraco.Web.Macros
|
||||
/// This method simply parses the macro contents, it does not create a string or result,
|
||||
/// this is up to the developer calling this method to implement this with the callbacks.
|
||||
/// </remarks>
|
||||
internal static void ParseMacros(
|
||||
public static void ParseMacros(
|
||||
string text,
|
||||
Action<string> textFoundCallback,
|
||||
Action<string, Dictionary<string, string>> macroFoundCallback )
|
||||
@@ -6,6 +6,7 @@
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<PackageReference Include="HtmlAgilityPack" Version="1.8.14" />
|
||||
<PackageReference Include="LightInject" Version="6.2.0" />
|
||||
<PackageReference Include="LightInject.Annotation" Version="1.1.0" />
|
||||
<PackageReference Include="Markdown" Version="2.2.1" />
|
||||
|
||||
@@ -167,8 +167,6 @@
|
||||
<Compile Include="Logging\WebProfilerComponent.cs" />
|
||||
<Compile Include="Logging\WebProfilerComposer.cs" />
|
||||
<Compile Include="Logging\WebProfilerProvider.cs" />
|
||||
<Compile Include="Macros\IMacroRenderer.cs" />
|
||||
<Compile Include="Macros\PublishedContentHashtableConverter.cs" />
|
||||
<Compile Include="Models\Identity\BackOfficeIdentityUser.cs" />
|
||||
<Compile Include="Models\Identity\IdentityMapDefinition.cs" />
|
||||
<Compile Include="Models\Identity\IdentityUser.cs" />
|
||||
@@ -238,7 +236,6 @@
|
||||
<Compile Include="Editors\BackOfficeServerVariables.cs" />
|
||||
<Compile Include="Editors\LogViewerController.cs" />
|
||||
<Compile Include="ImageProcessorLogger.cs" />
|
||||
<Compile Include="Macros\MacroTagParser.cs" />
|
||||
<Compile Include="Trees\LogViewerTreeController.cs" />
|
||||
<Compile Include="Mvc\ContainerControllerFactory.cs" />
|
||||
<Compile Include="OwinExtensions.cs" />
|
||||
@@ -282,10 +279,7 @@
|
||||
<Compile Include="Install\InstallSteps\ConfigureMachineKey.cs" />
|
||||
<Compile Include="Editors\MemberGroupController.cs" />
|
||||
<Compile Include="Composing\CompositionExtensions\Controllers.cs" />
|
||||
<Compile Include="Macros\MacroContent.cs" />
|
||||
<Compile Include="Macros\MacroModel.cs" />
|
||||
<Compile Include="HealthCheck\HealthCheckController.cs" />
|
||||
<Compile Include="Macros\MacroPropertyModel.cs" />
|
||||
<Compile Include="Macros\MacroRenderer.cs" />
|
||||
<Compile Include="HtmlHelperBackOfficeExtensions.cs" />
|
||||
<Compile Include="Composing\ModuleInjector.cs" />
|
||||
|
||||
Reference in New Issue
Block a user