Skip to content

Pipe tables ftw

Latest
Compare
Choose a tag to compare
@istathar istathar released this 24 May 23:15
· 50 commits to main since this release

Change to rendering pipe tables when formatting Markdown documents. We put lots of effort into supporting Pandoc's very clever multi-line table layout, but when trying to make changes to these tables it proved almost impossible to get the alignment and formatting right. In practice, everyone uses pipe tables regardless, and although it's a huge drag that you don't get line wrapping in these passages it is nevertheless better from a diff standpoint. So, switch to pipe table output.

There's also better escaping for [, ], and _ characters; this is slightly annoying in that it introduces is more visual noise into the Markdown and isn't strictly necessary if a link annotation [...](htps://..) isn't present, it matches the behaviour of Pandoc itself and reduces ambiguity for the parser inbound.

Builds with GHC 8.10.4 and also on MacBooks now.