Show / Hide Table of Contents

Class XhtmlToMarkdown

Utility to convert XHtml to Markdown text

Inheritance
System.Object
XhtmlToMarkdown
Namespace: Algenta.Colectica.Model.Utility
Assembly: Algenta.Colectica.Model.dll
Syntax
public class XhtmlToMarkdown : object

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
System.String xhtmlStr

a valid xhtml tree

Returns
Type Description
System.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
System.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
System.String

Extension Methods

Extensions.Yield<T>(T)
Back to top Copyright © 2009-2018 Colectica