Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

markdown-to-pdf workflow relies on a deprecated pandoc feature #213

Closed
ahouseholder opened this issue Apr 12, 2023 · 3 comments · Fixed by #338
Closed

markdown-to-pdf workflow relies on a deprecated pandoc feature #213

ahouseholder opened this issue Apr 12, 2023 · 3 comments · Fixed by #338
Labels
bug Something isn't working wontfix This will not be worked on

Comments

@ahouseholder
Copy link
Contributor

Encountered this while exploring options for #184

When you run doc/compile-pdf.sh it throws a warning:
[WARNING] Deprecated: markdown_github. Use gfm instead.

This script is using a feature that was deprecated in pandoc 2.0, which released in 2017.

However, per the comments inside doc/compile-pdf.sh:

--from should use gfm, but gfm+citations is not supported
so this method should perhaps be considered slightly unstable.
This citation syntax won't render on github
but the @ citation syntax shouldn't interfere with @ mentions
GFM only allows @ mentions in issues and pull requests
https://guides.github.com/features/mastering-markdown/#GitHub-flavored-markdown
documentation for citation processing:
https://pandoc.org/MANUAL.html#citations

Here is the main tracker for the issue in the gfm project:
jgm/pandoc#8452
which in turn depends on
jgm/commonmark-hs#15

As of this writing (4/12/2023) the latter issue has been open for four years with no updates in the past two. There is a comment in jgm/pandoc#8452 from the developer saying that "No definite time frame. It has been a surprisingly hard feature to implement and design."

Given that a fix seems unlikely in the near term, we need to explore alternatives for how to generate a PDF from the markdown while preserving citations.

@ahouseholder ahouseholder added the bug Something isn't working label Apr 13, 2023
@j---
Copy link
Collaborator

j--- commented Apr 13, 2023

For what it's worth, I spent a couple days looking for a better option than the deprecated option that I used. The pandoc +citations is fairly well supported, but the supported markdown dialects didn't display properly when viewed on github website in a browser preview of the file (which I thought was important for usability to make commenting accessible to folks who just had access to a web browser).

@ahouseholder
Copy link
Contributor Author

ahouseholder commented May 3, 2023

No resolution at this point, just keeping up with recent changes: as of #231 (which resolved #184), this is now a problem in

The links are to specific lines in a specific commit, but the problem will persist as long as markdown_github is invoked.

@ahouseholder ahouseholder changed the title compile-pdf.sh relies on a deprecated pandoc feature markdown-to-pdf workflow relies on a deprecated pandoc feature Jun 15, 2023
@ahouseholder ahouseholder added the wontfix This will not be worked on label Sep 27, 2023
@ahouseholder
Copy link
Contributor Author

Given the change to the web site as the primary documentation target instead of PDF-building, I think this issue is now moot and can be closed as wontfix. I'm leaving it open for a bit longer to allow for counterarguments, but let's set a timer that it can be closed after 2023-10-13 if no such reasons are forthcoming.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working wontfix This will not be worked on
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants