Skip to content

Problem with <summary> marker when converting to gfm #10789

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

Open
johnd0e opened this issue Apr 17, 2025 · 1 comment
Open

Problem with <summary> marker when converting to gfm #10789

johnd0e opened this issue Apr 17, 2025 · 1 comment
Labels

Comments

@johnd0e
Copy link

johnd0e commented Apr 17, 2025

Pandoc version: 3.6.4

Command line used: pandoc details.text --to=gfm

Source md - no problem

<details>

Content
</details>

<details>
<summary>
Details with summary
</summary>

Content
</details>

Content

Details with summary

Content

Converted to gfm - problem with marker placement

<details>

Content
</details>

<details>

<summary>

Details with summary
</summary>

Content
</details>

Content

Details with summary

Content

@johnd0e johnd0e added the bug label Apr 17, 2025
@johnd0e
Copy link
Author

johnd0e commented Apr 17, 2025

So the issue is caused by redundant empty line before summary text.

The question is: should the text be ever reformatted? Or it's better to just keep layout as in the sources?

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

No branches or pull requests

1 participant