# Markdown post processor
#
# A Markdown AST visitor called after parsing from a MdParser
abstract class MdPostProcessor
super MdVisitor
# Document behing processed
#
# Availlable only during a call to `post_process`.
var document: nullable MdDocument = null
# Post process the `document` parsed by `parser`
fun post_process(parser: MdParser, document: MdDocument) do
self.document = document
enter_visit(document)
self.document = null
end
# Call `MdNode::post_process`
redef fun visit(node) do node.post_process(self)
end
lib/markdown2/markdown_block_parsing.nit:1365,1--1385,3