Base class for HTML tag renderers that handle list elements (ul, ol, li).
More...
|
| static string | RenderList (IElement element, HtmlTagRenderingContext context) |
| | Renders a list element (ul or ol) to Markdown, handling nested lists and list items.
|
| |
| static string | RenderListItem (IElement element, HtmlTagRenderingContext context) |
| | Renders a list item (li) element to Markdown, handling nested lists and content.
|
| |
| 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 list elements (ul, ol, li).
◆ RenderList()
| static string Html2Markdown.Renderers.AbstractListRenderer.RenderList |
( |
IElement |
element, |
|
|
HtmlTagRenderingContext |
context |
|
) |
| |
|
inlinestaticprotected |
Renders a list element (ul or ol) to Markdown, handling nested lists and list items.
- Parameters
-
| element | The list element to render. |
| context | The rendering context. |
- Returns
- The rendered Markdown string.
◆ RenderListItem()
| static string Html2Markdown.Renderers.AbstractListRenderer.RenderListItem |
( |
IElement |
element, |
|
|
HtmlTagRenderingContext |
context |
|
) |
| |
|
inlinestaticprotected |
Renders a list item (li) element to Markdown, handling nested lists and content.
- Parameters
-
| element | The list item element to render. |
| context | The rendering context. |
- Returns
- The rendered Markdown string.
The documentation for this class was generated from the following file: