reitzig / ltx2any

Yet another LaTeX build wrapper, with one or two nifty features
GNU General Public License v3.0
59 stars 4 forks source link

Markdown format: Possible to make it GFM compatible? #90

Closed koppor closed 7 years ago

koppor commented 7 years ago

I am trying to use grip to instantly render the log.md since PDF generation takes too long.

The generated markdown, however, doesn't seem to be fully GitHub-flavoured markdown compatible.

See following screenshot:

grabbed_20170130-220304

Is it possible to make the markdown fully gfm-conformant?

akerbos commented 7 years ago

The Markdown logs were designed to be human-readable, not necessarily to be compiled. Using

pandoc -f Markdown -S -s -o foo.log.html foo.log.md 

gives a decent result; alignment can't be done better using plain, readable Markdown.

I probably won't implement other log modes (except maybe a JSON output for use by editors); what I will do is create an abstraction for log writers so that it's easy (for others) to implement more.

If log compilation takes to long, you need to be writing cleaner LaTeX! :P
akerbos commented 7 years ago

With #92 implemented, it should be straight-forward to add more log formats. I'll be happy to review any pull requests! That said, with #103 coming up custom post-processing routines (written in whatever language you want) are also a possibility.