Skip to content

remove empty attr check in fenced_divs#10960

Merged
jgm merged 2 commits intojgm:mainfrom
cscheid:improvement/ext-force-fenced-divs
Jul 27, 2025
Merged

remove empty attr check in fenced_divs#10960
jgm merged 2 commits intojgm:mainfrom
cscheid:improvement/ext-force-fenced-divs

Conversation

@cscheid
Copy link
Contributor

@cscheid cscheid commented Jul 10, 2025

This PR addresses the check discussed in #10955. I talked with @tarleb who proposed to simply remove the check instead of adding an additional extension.

It's a mere 1-line PR. 4 tests now fail:

  • test/command/4164.md

  • 2 tests in pandoc tests.Old.markdown.writer.basic (I think that's how you specify this one? There didn't appear to be a .md directly linked)

  • 1 test in opml.basic, and the test suite reports:

    Use -p '/opml.basic/' to rerun this test only."
    

By inspection, they all appear to be tests that, predictably, expect <div>...</div> to be in the output. But I don't know if the particular <div> syntax is important here or not.

@jgm
Copy link
Owner

jgm commented Jul 11, 2025

make TESTARGS=--accept will update the expected test output, except for the last one which needs to be changed in Haskell source. I'd say, update your PR so tests pass, and then we can think more about the consequences. So far I'm still tentatively in favor.

@tarleb
Copy link
Collaborator

tarleb commented Jul 23, 2025

Related issue, for spans: #10802

@jgm jgm merged commit 6893b38 into jgm:main Jul 27, 2025
11 of 14 checks passed
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.

3 participants