docutils.parsers.null module

A do-nothing parser.

class Parser[source]

Bases: Parser

A do-nothing parser.

supported = ('null',)

Name and aliases for this component. Override in subclasses.

config_section = 'null parser'

The name of the config file section specific to this component (lowercase, no brackets). Override in subclasses.

config_section_dependencies = ('parsers',)

A list of names of config file sections that are to be applied before config_section, in order (from general to specific). In other words, the settings in config_section are to be overlaid on top of the settings from these sections. The “general” section is assumed implicitly. Override in subclasses.

parse(inputstring, document)[source]

Override to parse inputstring into document tree document.