HTML2Markdown
Converts HTML to Markdown syntax.
Loading...
Searching...
No Matches
Public Member Functions | Properties | List of all members
Html2Markdown.Replacement.CustomReplacer Class Reference

Allows custom replacement of HTML tags utilizing external functions. More...

Inheritance diagram for Html2Markdown.Replacement.CustomReplacer:
Html2Markdown.Replacement.IReplacer Html2Markdown.Replacement.AnchorTagReplacer Html2Markdown.Replacement.BlockquoteTagReplacer Html2Markdown.Replacement.CodeTagReplacer Html2Markdown.Replacement.HeadingTagReplacer Html2Markdown.Replacement.HtmlEntitiesReplacer Html2Markdown.Replacement.HtmlListReplacer Html2Markdown.Replacement.ImageTagReplacer Html2Markdown.Replacement.ParagraphTagReplacer Html2Markdown.Replacement.PreTagReplacer

Public Member Functions

string Replace (string html)
 Replaces the HTML string using the custom action.
 
string Replace (string html)
 Replace specific matches in an HTML string.
 

Properties

Func< string, string > CustomAction [get]
 Gets or sets the custom action to be used for replacing HTML tags.
 

Detailed Description

Allows custom replacement of HTML tags utilizing external functions.

Member Function Documentation

◆ Replace()

string Html2Markdown.Replacement.CustomReplacer.Replace ( string  html)
inline

Replaces the HTML string using the custom action.

Parameters
htmlThe HTML string to process.
Returns
The processed HTML string with the custom replacement applied.

Implements Html2Markdown.Replacement.IReplacer.

Property Documentation

◆ CustomAction

Func<string, string> Html2Markdown.Replacement.CustomReplacer.CustomAction
get

Gets or sets the custom action to be used for replacing HTML tags.


The documentation for this class was generated from the following file: