md4c.py

md4c related stuff for mdpo.

mdpo.md4c.DEFAULT_MD4C_GENERIC_PARSER_EXTENSIONS = ['collapse_whitespace', 'tables', 'strikethrough', 'tasklists', 'latex_math_spans', 'wikilinks']

md4c parser extensions used as default by md2po and po2md implementations.

Type

list

mdpo.md4c.READABLE_BLOCK_NAMES = {1: 'quote', 2: 'unordered list', 3: 'ordered list', 6: 'header', 7: 'code', 8: 'html', 9: 'paragraph', 10: 'table'}

mapping from pymd4c block type values to block readable names

Type

dict