-
-
Notifications
You must be signed in to change notification settings - Fork 3.4k
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
Handling of ```{lang} codeblocks, change from pandoc 2.19.2 to pandoc 3.1 #8645
Comments
I understand why this changed, but I think this is a case where the old behavior was a bug. |
To elaborate: Previously, pandoc was quite lax in what it accepted as a language identifier in the
form. It even accepted
This required us to be more picky about what we treated as a language identifier; we had to be sure we weren't gobbling the attribute specifier, so we excluded |
Bottom line: what you should write is
or
|
One reason why I'd like to support this is that it is close to the "directive" syntax in MyST. See also jgm/commonmark-hs#100 |
Well, this would be a change to the syntax of attribute specifiers. We could consider it, but it should be proposed on a separate issue and discussed there. This issue is about a putative regression, which I'd say is not really a bug. |
The treatment of this type of code syntax has changed from pandoc 2 to 3:
In pandoc 2.19.2:
In pandoc 3.1:
The change is particularly hard on quarto when there's a line break:
We use the
{lang}
and{{lang}}
syntax pretty extensively in quarto. We could work around it by patching the input markdown around pandoc 3, but it would really be great if we didn't have to.Was this change deliberate? We didn't see anything on the changelog that suggested that, hence our question here.
Thanks!
The text was updated successfully, but these errors were encountered: