blob: 3e5330ac8b32da111909f8c29d0cab1b1dff0df7 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
from docutils.parsers import Parser
from docutils import nodes
class Parser(Parser):
def parse(self, input, document):
section = nodes.section(ids=['id1'])
section += nodes.title('Generated section', 'Generated section')
document += section
def get_transforms(self):
return []
|