Skip to content

Markdown writer: preserve figure attributes#10868

Merged
jgm merged 1 commit intojgm:mainfrom
lierdakil:lierdakil/fix-10867
May 27, 2025
Merged

Markdown writer: preserve figure attributes#10868
jgm merged 1 commit intojgm:mainfrom
lierdakil:lierdakil/fix-10867

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