0bdcf415e4
Update tests. Reason: it turns out that the native output generated by pretty-simple isn't always readable by the native reader. According to https://github.com/cdepillabout/pretty-simple/issues/99 it is not a design goal of the library that the rendered values be readable using 'read'. This makes it unsuitable for our purposes. pretty-show is a bit slower and it uses 4-space indents (non-configurable), but it doesn't have this serious drawback.
623 B
623 B
% pandoc -f rst -s -t native
=====
Title
=====
--------
Subtitle
--------
header1
=======
header2
-------
.. _id:
header3
~~~~~~~
.. _id2:
.. _id3:
header4
~~~~~~~
^D
Pandoc
Meta
{ unMeta =
fromList
[ ( "subtitle" , MetaInlines [ Str "Subtitle" ] )
, ( "title" , MetaInlines [ Str "Title" ] )
]
}
[ Header 1 ( "header1" , [] , [] ) [ Str "header1" ]
, Header 2 ( "header2" , [] , [] ) [ Str "header2" ]
, Header 3 ( "id" , [] , [] ) [ Str "header3" ]
, Header
3
( "id3" , [] , [] )
[ Str "header4" , Span ( "id2" , [] , [] ) [] ]
]