Skip to content

Instantly share code, notes, and snippets.

@hishnash
Created April 5, 2017 08:11
Show Gist options
  • Save hishnash/04a0c51fe51ad08a97615ac3dfbe4060 to your computer and use it in GitHub Desktop.
Save hishnash/04a0c51fe51ad08a97615ac3dfbe4060 to your computer and use it in GitHub Desktop.
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