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

docs(markdown-it): work around fence rule pre code wrapper [#811] #955

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

olets
Copy link
Contributor

@olets olets commented Mar 1, 2025

Description

markdown-it wraps code block html in <pre><code>.  That can be undesirable when using a Shiki transformer which adds its own <pre><code>. This PR

  • documents this fact
  • points to the markdown-it discussion which is the closest thing to official documentation of how to work around this
  • and links to the package I put together based on that following discussion in a Shiki issue

Linked Issues

Additional context

If you decide to close without merging, please also close #811.

Copy link

netlify bot commented Mar 1, 2025

Deploy Preview for shiki-matsu failed.

Name Link
🔨 Latest commit 85e31b6
🔍 Latest deploy log https://app.netlify.com/sites/shiki-matsu/deploys/67c36d7ee8390d0008580365

Copy link

netlify bot commented Mar 1, 2025

Deploy Preview for shiki-next failed.

Name Link
🔨 Latest commit 85e31b6
🔍 Latest deploy log https://app.netlify.com/sites/shiki-next/deploys/67c36d7e4935430008fb518b

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.

using a transformer to add a wrapping element results in extra duplicative nodes
1 participant