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

troubleshooting: fix details summary layout #399

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

otegami
Copy link
Contributor

@otegami otegami commented Dec 12, 2024

This PR fixed the details summary layout because the kramdown's
parser regards the summary as a block and generates unexpected
HTML layout like the following.

So we explicitly specified the summary is a inline block to solve
it. After gettalong/kramdown#819 is solved,
we can just add the parse-block-html option to handle it.

Before After
Screenshot from 2024-12-12 09-09-21 Screenshot from 2024-12-12 09-10-01

FYI: This PR doesn't add additional css to fix the layout of details and summary.

This PR fixed the details summary layout because the kramdown's
parser regard the summary as a block and generates unpexpected
HTML layout like the following.

So we explicitly specified the summary is a inline block to solve
it. After gettalong/kramdown#819 is solved,
we can just add the parse-block-html option to handdle it.
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.

1 participant