pandoc/test/command/7436.md
John MacFarlane 07d847a910 RST reader: Fix :literal: includes.
These should create code blocks, not insert raw RST.
Closes #7513.
2021-08-20 09:54:42 -07:00

413 B

% pandoc -f rst -t native
.. include:: command/three.txt
   :code:

.. include:: command/three.txt
   :literal:

.. include:: command/three.txt
^D
[CodeBlock ("",[""],[("code","")]) "1st line.\n2nd line.\n3rd line.\n"
,CodeBlock ("",[""],[("literal","")]) "1st line.\n2nd line.\n3rd line.\n"
,Para [Str "1st",Space,Str "line.",SoftBreak,Str "2nd",Space,Str "line.",SoftBreak,Str "3rd",Space,Str "line."]]