This compares the differences between pandoc's markdown
and markdown_github
engines when parsing <div>
tags within sections.
In essence, if a <div>
tag contains a header out of order with the main document, its contents will be appended to the div in the html document with markdown_github
. If the following div appears after a level 3 header:
<div class='boo'>
## level 2
</div>
It will appear like this:
<div class='boo'>
</div>
<div class='section' id='level-2'>
<h2> level 2</h2
</div
Use the markdown
engine instead of markdown_github
The html and diff files are generated from pandoc-compare.sh
chmod 755 pandoc-compare.sh
./pandoc-compare.sh > test.diff