I have a file test.rst that has custom RST directives.
This is generated from a sphinx-build documentation.
The main title
==============
Some paragraph content.
.. myproject:component:: /path/to/my/component
Description of my component.
Testing with pandoc --verbose -t native test.rst
The output is:
[Header 1 ("the-main-title",[],[]) [Str "The",Space,Str "main",Space,Str "title"]
,Para [Str "Some",Space,Str "paragraph",Space,Str "content."]]
As you can see the custom directive is not present in the AST.
I was looking at the RST Reader: https://github.com/jgm/pandoc/blob/master/src/Text/Pandoc/Readers/RST.hs#L1520
What is a good way of adding a new directive to Pandoc so that when I convert the RST file to Markdown it can get interpreted.
First I need the Reader to understand those custom directives.
Please advise.
Thank you!