An extendable 'markdown' library according to particular formatting needs.
A markdown parser that constructs valid, formated DOM objects, allowing callbacks to re-render documents as desired.
rather than bloat the code with complicated syntax to make things like figure and figcaption, consider contextual callbacks, ie., something like an
followed by afollowed by a
text
would create a. This would be done using xpath + callbacks, ie addCallback(‘//hr/following-sibling::img/following-sibling::p, function($doc)) text