Compare commits

..

3 Commits

3 changed files with 13 additions and 4 deletions

View File

@ -1,7 +1,4 @@
using SmartFormat;
using SmartFormat.Core.Extensions;
namespace OliverBooth.Data.Web;
namespace OliverBooth.Data.Web;
/// <summary>
/// Represents a MediaWiki-style template.

View File

@ -11,6 +11,10 @@ internal sealed class TemplateExtension : IMarkdownExtension
{
private readonly TemplateService _templateService;
/// <summary>
/// Initializes a new instance of the <see cref="TemplateExtension" /> class.
/// </summary>
/// <param name="templateService">The template service.</param>
public TemplateExtension(TemplateService templateService)
{
_templateService = templateService;

View File

@ -12,6 +12,14 @@ public sealed class TemplateInlineParser : InlineParser
private static readonly IReadOnlyDictionary<string, string> EmptyParams =
new Dictionary<string, string>().AsReadOnly();
/// <summary>
/// Initializes a new instance of the <see cref="TemplateInlineParser" /> class.
/// </summary>
public TemplateInlineParser()
{
OpeningCharacters = new[] { '{' };
}
/// <inheritdoc />
public override bool Match(InlineProcessor processor, ref StringSlice slice)
{