summaryrefslogtreecommitdiff
path: root/tests/root/parsermod.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/root/parsermod.py')
-rw-r--r--tests/root/parsermod.py12
1 files changed, 12 insertions, 0 deletions
diff --git a/tests/root/parsermod.py b/tests/root/parsermod.py
new file mode 100644
index 000000000..3e5330ac8
--- /dev/null
+++ b/tests/root/parsermod.py
@@ -0,0 +1,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 []