Markdown formatter class for creating an html document from Markdown text
Return the document in XHTML format.
@returns: A serialized XHTML body.
This gets called by the extension
Resets all state variables so that we can start with a new text.
Returns a list of descendants that pass the test function
Replaces underlined headers with hashed headers to avoid the need for lookahead later.
Deals with HR lines (needs to be done before processing lists)
Removes html blocks from the source text and stores it.
Removes reference definitions from the text and stores them for later use.
Postprocessors are run before the dom it converted back into text.
Each Postprocessor implements a “run” method that takes a pointer to a NanoDom document, modifies it as necessary and returns a NanoDom document.
Postprocessors must extend markdown.Postprocessor.
There are currently no standard post-processors, but the footnote extension uses one.
This class is used for stashing HTML objects that we extract in the beginning and replace with place-holders.
Saves an HTML segment for later reinsertion. Returns a placeholder string that needs to be inserted into the document.
@param html: an html segment @param safe: label an html segment as safe for safemode @param inline: label a segmant as inline html @returns : a placeholder string
An auxiliary method to be passed to _findHead
Print an error string to stderr
Removes quotes from around a string
This class is scheduled for removal as part of a refactoring effort.