Class XhtmlToMarkdown
Utility to convert XHtml to Markdown text
Inherited Members
Namespace: Algenta.Colectica.Model.Utility
Assembly: Algenta.Colectica.Model.dll
Syntax
public class XhtmlToMarkdown
Constructors
XhtmlToMarkdown()
Create converter for XHtml to Markdown text
Declaration
public XhtmlToMarkdown()
Methods
Transform(string)
Transform an XHTML string to markdown
Declaration
public string Transform(string xhtmlStr)
Parameters
| Type | Name | Description |
|---|---|---|
| string | xhtmlStr | a valid xhtml tree |
Returns
| Type | Description |
|---|---|
| string |
Transform(XElement)
Transform an XHTML tree to markdown
Declaration
public string Transform(XElement element)
Parameters
| Type | Name | Description |
|---|---|---|
| XElement | element | a valid xhtml tree |
Returns
| Type | Description |
|---|---|
| string |
Transform(XmlNode)
Transform an XHTML tree to markdown
Declaration
public string Transform(XmlNode element)
Parameters
| Type | Name | Description |
|---|---|---|
| XmlNode | element | a valid xhtml tree |
Returns
| Type | Description |
|---|---|
| string |