Compare commits
3 Commits
8a1cd689ea
...
26b022f7ba
Author | SHA1 | Date | |
---|---|---|---|
26b022f7ba | |||
2e17daea52 | |||
07071dc7a5 |
@ -1,7 +1,4 @@
|
||||
using SmartFormat;
|
||||
using SmartFormat.Core.Extensions;
|
||||
|
||||
namespace OliverBooth.Data.Web;
|
||||
namespace OliverBooth.Data.Web;
|
||||
|
||||
/// <summary>
|
||||
/// Represents a MediaWiki-style template.
|
||||
|
@ -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;
|
||||
|
@ -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)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user