Skip to content

Markdown writer: preserve figure attributes #10868

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

Merged
merged 1 commit into from
May 27, 2025

Conversation

lierdakil
Copy link
Contributor

0d2114e introduced a bug where Markdown writer would ignore attributes on the figure if it has class or key-value attributes set.

This commit fixes that and adds a regression test.

Closes #10867


I've read over 0d2114e description and the related issue a few times, but I can't understand the motivation behind the change in combinedAttr. So I'm just reverting that here, hopefully tests still pass. If there was some reasoning behind this -- please explain, and we can figure it out from there.

@lierdakil lierdakil force-pushed the lierdakil/fix-10867 branch 2 times, most recently from 314d973 to bf81f9a Compare May 24, 2025 18:03
0d2114e introduced a bug where Markdown writer would ignore attributes
on the figure if it has class or key-value attributes set.

This commit fixes that and adds a regression test.

Closes jgm#10867
@lierdakil lierdakil force-pushed the lierdakil/fix-10867 branch from bf81f9a to fad45a6 Compare May 24, 2025 18:22
@jgm
Copy link
Owner

jgm commented May 27, 2025

I think you're right.

@jgm jgm merged commit 8d93cd7 into jgm:main May 27, 2025
11 of 14 checks passed
@lierdakil lierdakil deleted the lierdakil/fix-10867 branch May 27, 2025 10:30
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

Successfully merging this pull request may close these issues.

Markdown writer eats figure attributes
2 participants