Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
const CLASS_MAPPINGS = {
'docutils.nodes.section': Section,
'docutils.nodes.paragraph': Paragraph,
'docutils.nodes.Text': Text,
'docutils.nodes.title': Title,
'docutils.nodes.compound': Compound,
'sphinx.addnodes.compact_paragraph': Paragraph,
'docutils.nodes.bullet_list': BulletList,
'docutils.nodes.definition_list': DefinitionList,
'docutils.nodes.enumerated_list': EnumeratedList,
'docutils.nodes.line_block': LineBlock,
'docutils.nodes.literal_block': LiteralBlock,
'docutils.nodes.list_item': ListItem,
'docutils.nodes.line': Line,
'docutils.nodes.table': TableNode,
'docutils.nodes.target': Target,
'docutils.nodes.definition_list_item': DefinitionListItem,
'docutils.nodes.term': DefinitionListTerm,
'docutils.nodes.definition': Definition,
'docutils.nodes.reference': Reference,
'sphinx.addnodes.desc': Desc,
'sphinx.addnodes.desc_signature': DescSignature,
'sphinx.addnodes.desc_content': DescContent,
'sphinx.addnodes.desc_addname': DescAddName,
'sphinx.addnodes.desc_name': DescName,
'sphinx.addnodes.desc_parameterlist': DescParamerterList,
'sphinx.addnodes.desc_parameter': DescParamerter,
'sphinx.addnodes.desc_optional': DescOptional,
'docutils.nodes.emphasis': Emphasis,
'docutils.nodes.strong': Strong,
///// and many many more more items here
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment