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

regression: codeblock attributes not preserved by markdown writer #7397

Closed
dsteurer opened this issue Jun 21, 2021 · 2 comments
Closed

regression: codeblock attributes not preserved by markdown writer #7397

dsteurer opened this issue Jun 21, 2021 · 2 comments

Comments

@dsteurer
Copy link

dsteurer commented Jun 21, 2021

The markdown writer in the latest release (pandoc 2.14.0.2) omits in some cases attributes of codeblocks.
Earlier versions (at least pandoc 2.12) preserve the attributes correctly.
(Unfortunately, I don't know which version introduced this regression.)

Example

Input:

~~~~ { .haskell startFrom="100"}
qsort []     = []
qsort (x:xs) = qsort (filter (< x) xs) ++ [x] ++
               qsort (filter (>= x) xs)
~~~~

Output of pandoc -t markdown:

~~~~ haskell
qsort []     = []
qsort (x:xs) = qsort (filter (< x) xs) ++ [x] ++
               qsort (filter (>= x) xs)
~~~~

Expected output: same as input

In this example, the attributes are correctly preserved if another class or an identifier is added to the attributes.

@jgm
Copy link
Owner

jgm commented Jun 21, 2021

Probably due to #7242

@dsteurer
Copy link
Author

Thank you for the quick response!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants