You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
$ perl -e 'print "\n% title\n% author\n% date\n"'
% title
% author
% date
Note that the initial blank line means that the % title line will not actually be treated as the title, but will be a paragraph containing a % character. (Similarly for author and date.)
The bug is in the first conversion from JSON to Markdown. When producing a Markdown file which contains an initial paragraph that starts with %, either the % should be escaped or there should be a blank line at the start to avoid interpreting the % as a title.
Here's the initial input:
Note that the initial blank line means that the
% title
line will not actually be treated as the title, but will be a paragraph containing a%
character. (Similarly for author and date.)Now let's run this through Pandoc and back:
Note that the initial blank line is gone. If we do another pass through Pandoc:
It now gets interpreted as a title.
The bug is in the first conversion from JSON to Markdown. When producing a Markdown file which contains an initial paragraph that starts with
%
, either the%
should be escaped or there should be a blank line at the start to avoid interpreting the%
as a title.The text was updated successfully, but these errors were encountered: