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

href are escaped by Pandoc 3.2.1 breaking toc #2580

Open
cderv opened this issue Oct 31, 2024 · 0 comments
Open

href are escaped by Pandoc 3.2.1 breaking toc #2580

cderv opened this issue Oct 31, 2024 · 0 comments
Assignees
Labels
bug an unexpected problem or unintended behavior theme: pandoc concerns upstream pandoc

Comments

@cderv
Copy link
Collaborator

cderv commented Oct 31, 2024

This (edit: #1776) just became very relevant for me. It turns out, pandoc started to escape href URIs starting with 3.2.1 because of jgm/pandoc#9905

This specifically broke all toc entries in my document that do not consisted solely of ascii characters:

Uncaught Error: Syntax error, unrecognized expression: #bundesl%C3%A4nder
    jQuery 7
    refresh file:///XX/report_files/bootstrap-3.3.7/js/bootstrap.min.js:6
    jQuery 3
    refresh file:///XX/report_files/bootstrap-3.3.7/js/bootstrap.min.js:6
    b file:///XX/report_files/bootstrap-3.3.7/js/bootstrap.min.js:6
    c file:///XX/report_files/bootstrap-3.3.7/js/bootstrap.min.js:6
    jQuery 2
    c file:///XX/report_files/bootstrap-3.3.7/js/bootstrap.min.js:6
    <anonymous> file:///XX/report_files/downcute-0.1/downcute.js:44
    EventListener.handleEvent* file:///XX/report_files/downcute-0.1/downcute.js:11

A way to tell pandoc to use --to html5 would solve this.

Originally posted by @octomike in #1776 (comment)

@cderv cderv self-assigned this Oct 31, 2024
@cderv cderv added theme: pandoc concerns upstream pandoc bug an unexpected problem or unintended behavior labels Oct 31, 2024
@cderv cderv moved this from Backlog to Next / Ready for Dev in R Markdown Team Projects Oct 31, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug an unexpected problem or unintended behavior theme: pandoc concerns upstream pandoc
Projects
Status: Next / Ready for Dev
Development

No branches or pull requests

1 participant