MarkdownCode
Namespace: Markdown
Markdown code.
public class MarkdownCode : MarkdownTextElement, IMarkdownBlockElement
Inheritance Object → MarkdownTextElement → MarkdownCode
Implements IMarkdownBlockElement
Properties
Language
Gets or sets the code language.
public string Language { get; set; }
Property Value
String
Code language.
Text
Gets or sets the text.
public string Text { get; set; }
Property Value
String
The text or a string that represents the markdown inline element.
Constructors
MarkdownCode(String, String)
Initializes a new instance of the MarkdownCode class.
public MarkdownCode(string language, string code)
Parameters
language
String
The code language.
code
String
The code.
MarkdownCode(String, MarkdownInlineElement)
Initializes a new instance of the MarkdownCode class.
public MarkdownCode(string language, MarkdownInlineElement inlineElement)
Parameters
language
String
The code language.
inlineElement
MarkdownInlineElement
The code as markdown inline element.
Methods
ToString()
Returns a string that represents the current markdown code.
public string ToString()
Returns
String
A string that represents the current markdown code.