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

BUG: update pandoc arguments #35

Open
pcmoore opened this issue Apr 30, 2024 · 1 comment
Open

BUG: update pandoc arguments #35

pcmoore opened this issue Apr 30, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@pcmoore
Copy link
Member

pcmoore commented Apr 30, 2024

On pandoc v3.1.8, and possibly earlier versions, the following warning is seen when rendering The Notebook. We should verify that the suggested arguments exist on older versions of pandoc and migrate to the new recommended arguments.

[WARNING] Deprecated: --self-contained. use --embed-resources --standalone
@pcmoore pcmoore added the bug Something isn't working label Apr 30, 2024
@dburgener
Copy link
Member

The --embed-resources flag was added in the same commit as the --self-contained flag was deprecated. This was released in pandoc 2.19 on 2022-08-03 https://github.com/jgm/pandoc/blob/main/changelog.md#pandoc-219-2022-08-03

Fedora should have 2.19 or later starting with f39: https://koji.fedoraproject.org/koji/packageinfo?packageID=11560, and f40 is the oldest version still receiving updates.

Ubuntu LTS releases can be pretty ancient: https://en.wikipedia.org/wiki/Ubuntu_version_history. In particular, 20.04 and 22.04 are still in their regular support windows. Ubuntu 20.04 has pandoc 2.5 and 22.04 has pandoc 2.9.2, which are both too old. The latest LTS, 24.04 has 3.1.3, which is new enough: https://launchpad.net/ubuntu/+source/pandoc

I happened to have an Ubuntu 22.04 box up and verified that the warning does not appear there and --embed-resources --standalone is not yet supported.

We're obviously not under an obligation to stay compatible with Ubuntu LTS releases indefinitely, but since the --self-contained version still works on the latest pandoc, my preference would be to leave it as is for backwards compatibility, at least until Ubuntu 20.04 ends its regular support window in May 2025. That would still leave 22.04 as a supported LTS with a version of pandoc that's too old, but waiting until 2027 for it's regular support window to close seems excessive IMO.

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

No branches or pull requests

2 participants