Base class for HTML tag renderers that handle specific HTML elements and convert them to Markdown.
More...
|
| static string | RenderCode (IElement element) |
| | Renders the text content of an HTML element as a Markdown code block or inline code, depending on whether it contains line breaks.
|
| |
| static string | RenderWrapped (IElement element, HtmlTagRenderingContext context, string marker) |
| | Renders the children of an HTML element wrapped in a specified Markdown marker (e.g., for bold or italic text).
|
| |
| static string | RenderLineBreak () |
| | Renders a line break in Markdown, represented by two spaces followed by a newline.
|
| |
Base class for HTML tag renderers that handle specific HTML elements and convert them to Markdown.
◆ RenderCode()
| static string Html2Markdown.Renderers.AbstractRenderer.RenderCode |
( |
IElement |
element | ) |
|
|
inlinestaticprotected |
Renders the text content of an HTML element as a Markdown code block or inline code, depending on whether it contains line breaks.
- Parameters
-
| element | The HTML element containing the code to render. |
- Returns
- The rendered Markdown string.
◆ RenderLineBreak()
| static string Html2Markdown.Renderers.AbstractRenderer.RenderLineBreak |
( |
| ) |
|
|
staticprotected |
Renders a line break in Markdown, represented by two spaces followed by a newline.
- Returns
- The rendered Markdown string.
◆ RenderWrapped()
| static string Html2Markdown.Renderers.AbstractRenderer.RenderWrapped |
( |
IElement |
element, |
|
|
HtmlTagRenderingContext |
context, |
|
|
string |
marker |
|
) |
| |
|
staticprotected |
Renders the children of an HTML element wrapped in a specified Markdown marker (e.g., for bold or italic text).
- Parameters
-
| element | The HTML element whose children to render. |
| context | The rendering context. |
| marker | The Markdown marker to wrap the content with. |
- Returns
- The rendered Markdown string.
The documentation for this class was generated from the following file: