Files
sphinx/tests/roots/test-root/parsermod.py

15 lines
346 B
Python
Raw Normal View History

from docutils import nodes
2018-02-19 22:39:14 +09:00
from docutils.parsers import Parser
class Parser(Parser):
supported = ('foo',)
def parse(self, input, document):
section = nodes.section(ids=['id1'])
section += nodes.title('Generated section', 'Generated section')
document += section
def get_transforms(self):
return []