Skip to content

fix: render code block inside details tag in codelab#1038

Merged
rasmi merged 1 commit intomainfrom
fix/codelab-details-markdown-rendering
Mar 9, 2026
Merged

fix: render code block inside details tag in codelab#1038
rasmi merged 1 commit intomainfrom
fix/codelab-details-markdown-rendering

Conversation

@aldenhallak
Copy link
Collaborator

Kramdown (Jekyll's markdown processor) does not process markdown inside raw HTML block elements by default. Adding markdown="1" to the

Details tag tells Kramdown to parse the fenced code block inside it, fixing the script rendering in section 6.

Description


image

@aldenhallak aldenhallak requested review from Aa-g-i and cjqian March 4, 2026 22:14
@aldenhallak aldenhallak self-assigned this Mar 4, 2026
Kramdown (Jekyll's markdown processor) does not process markdown
inside raw HTML block elements by default. Adding markdown="1" to
the <details> tag tells Kramdown to parse the fenced code block
inside it, fixing the script rendering in section 6.
@rasmi rasmi force-pushed the fix/codelab-details-markdown-rendering branch from 2ac607d to 57af6be Compare March 9, 2026 21:29
@rasmi rasmi self-requested a review March 9, 2026 21:33
@rasmi rasmi merged commit cfa41ce into main Mar 9, 2026
9 checks passed
@rasmi rasmi deleted the fix/codelab-details-markdown-rendering branch March 9, 2026 21:33
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.

2 participants