byorgey / BlogLiterately

Command-line tool for formatting and publishing blog posts.
GNU General Public License v3.0
19 stars 4 forks source link

pandoc 2.2 #39

Closed clinty closed 6 years ago

clinty commented 6 years ago

Please update for pandoc 2.2

byorgey commented 6 years ago

Hi there, thanks for the report. I'm working on it but it looks like it is also going to require some HaXmL updates, and not sure how long that will be.

byorgey commented 6 years ago

Just to record some progress, it is now possible to build HEAD BlogLiterately with pandoc-2.2 under GHC-8.2 (not 8.4 since HaXml does not compile, even with --allow-newer), but this results in the following errors:

[10 of 12] Compiling Text.BlogLiterately.Transform ( src/Text/BlogLiterately/Transform.hs, dist/dist-sandbox-afe275d3/build/Text/BlogLiterately/Transform.o )

src/Text/BlogLiterately/Transform.hs:587:42: error:
    Data constructor not in scope:
      LaTeXMathML :: Maybe [Char] -> HTMLMathMethod
    |
587 |         opt `isPrefixOf` "asciimathml" = LaTeXMathML (mathUrlMaybe opt)
    |                                          ^^^^^^^^^^^

src/Text/BlogLiterately/Transform.hs:592:42: error:
    • Data constructor not in scope:
        JsMath :: Maybe [Char] -> HTMLMathMethod
    • Perhaps you meant ‘Math’ (imported from Text.Pandoc)
    |
592 |       | opt `isPrefixOf` "jsmath"      = JsMath (mathUrlMaybe opt)
    |                                          ^^^^^^

I need to look into what changed in pandoc and how to update.

clinty commented 6 years ago

Maybe https://github.com/jgm/pandoc/issues/4607 is helpful?

byorgey commented 6 years ago

@clinty Huh? I don't see how that ticket about --gladtex is relevant.

byorgey commented 6 years ago

Oh, I see, https://github.com/jgm/pandoc/commit/16f36eee43c9401612aa647eff4f041c4270e969 . So all we have to do is remove those options.

byorgey commented 6 years ago

Uploaded BlogLiterately-0.8.6.2 to Hackage which should work with GHC 8.4 and pandoc 2.2. Let me know if you have any issues!