oliverbooth.dev/OliverBooth/Markdown/Template/TemplateInline.cs
Oliver Booth 0a9c2e82d5
refactor: combine sites into one
CORS was "cors"ing some issues (heh).

But also it is easier to maintain this way. Development was made much more difficult when I separated it. Combining it all also improves SEO
2023-08-13 17:34:38 +01:00

34 lines
1023 B
C#

using Markdig.Syntax.Inlines;
namespace OliverBooth.Markdown.Template;
/// <summary>
/// Represents a Markdown inline element that represents a MediaWiki-style template.
/// </summary>
public sealed class TemplateInline : Inline
{
/// <summary>
/// Gets the raw argument string.
/// </summary>
/// <value>The raw argument string.</value>
public string ArgumentString { get; set; } = string.Empty;
/// <summary>
/// Gets the argument list.
/// </summary>
/// <value>The argument list.</value>
public IReadOnlyList<string> ArgumentList { get; set; } = ArraySegment<string>.Empty;
/// <summary>
/// Gets the name of the template.
/// </summary>
/// <value>The name of the template.</value>
public string Name { get; set; } = string.Empty;
/// <summary>
/// Gets the template parameters.
/// </summary>
/// <value>The template parameters.</value>
public IReadOnlyDictionary<string, string> Params { get; set; } = null!;
}