Interface IMarkdownParser
Markdown parser.
Namespace:Microsoft.DocAsCode.MarkdownLite
Assembly:Microsoft.DocAsCode.MarkdownLite.dll
Syntax
public interface IMarkdownParser
Properties
Context
Get the current markdown context.
Declaration
IMarkdownContext Context { get; }
Property Value
Type | Description |
---|---|
IMarkdownContext |
Links
Get the No. links.
Declaration
Dictionary<string, LinkObj> Links { get; }
Property Value
Type | Description |
---|---|
Dictionary<String, LinkObj> |
Options
Get the Options.
Declaration
Options Options { get; }
Property Value
Type | Description |
---|---|
Options |
Methods
SwitchContext(IMarkdownContext)
Switch the markdown context.
Declaration
IMarkdownContext SwitchContext(IMarkdownContext context)
Parameters
Type | Name | Description |
---|---|---|
IMarkdownContext | context | New context. |
Returns
Type | Description |
---|---|
IMarkdownContext | The old context. |
Tokenize(SourceInfo)
Tokenize the markdown text.
Declaration
ImmutableArray<IMarkdownToken> Tokenize(SourceInfo sourceInfo)
Parameters
Type | Name | Description |
---|---|---|
SourceInfo | sourceInfo |
Returns
Type | Description |
---|---|
System.Collections.Immutable.ImmutableArray<IMarkdownToken> | A list of IMarkdownToken. |