Compare commits
3 Commits
8a1cd689ea
...
26b022f7ba
Author | SHA1 | Date | |
---|---|---|---|
26b022f7ba | |||
2e17daea52 | |||
07071dc7a5 |
@ -1,7 +1,4 @@
|
|||||||
using SmartFormat;
|
namespace OliverBooth.Data.Web;
|
||||||
using SmartFormat.Core.Extensions;
|
|
||||||
|
|
||||||
namespace OliverBooth.Data.Web;
|
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Represents a MediaWiki-style template.
|
/// Represents a MediaWiki-style template.
|
||||||
|
@ -11,6 +11,10 @@ internal sealed class TemplateExtension : IMarkdownExtension
|
|||||||
{
|
{
|
||||||
private readonly TemplateService _templateService;
|
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)
|
public TemplateExtension(TemplateService templateService)
|
||||||
{
|
{
|
||||||
_templateService = templateService;
|
_templateService = templateService;
|
||||||
|
@ -12,6 +12,14 @@ public sealed class TemplateInlineParser : InlineParser
|
|||||||
private static readonly IReadOnlyDictionary<string, string> EmptyParams =
|
private static readonly IReadOnlyDictionary<string, string> EmptyParams =
|
||||||
new Dictionary<string, string>().AsReadOnly();
|
new Dictionary<string, string>().AsReadOnly();
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Initializes a new instance of the <see cref="TemplateInlineParser" /> class.
|
||||||
|
/// </summary>
|
||||||
|
public TemplateInlineParser()
|
||||||
|
{
|
||||||
|
OpeningCharacters = new[] { '{' };
|
||||||
|
}
|
||||||
|
|
||||||
/// <inheritdoc />
|
/// <inheritdoc />
|
||||||
public override bool Match(InlineProcessor processor, ref StringSlice slice)
|
public override bool Match(InlineProcessor processor, ref StringSlice slice)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user