HtmlToMarkdownConverterConvertHtml Method

Converts a HTML string to Markdown using a base URL to resolve external resources and returns the Markdown text. A new instance of HtmlToMarkdownConverter must be created for each call to this method

Definition

Namespace: EvoPdf.Next
Assembly: EvoPdf.Next (in EvoPdf.Next.dll) Version: 15.1.0
C#
public string ConvertHtml(
	string htmlString,
	string baseUrl
)

Parameters

htmlString  String
The HTML string to convert to Markdown
baseUrl  String
The base URL used to determine the full URL of the external resources like images, CSS, JavaScript and Web Font files referenced by relative URLs in HTML, and of the links and images written in Markdown. It can be null if it is not needed

Return Value

String
The Markdown text

See Also