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

fix(code-block): pass language as class name #2064

Merged

Conversation

stefanprobst
Copy link
Contributor

πŸ”— Linked issue

❓ Type of change

  • πŸ“– Documentation (updates to the documentation or readme)
  • 🐞 Bug fix (a non-breaking change that fixes an issue)
  • πŸ‘Œ Enhancement (improving an existing functionality like performance)
  • ✨ New feature (a non-breaking change that adds functionality)
  • ⚠️ Breaking change (fix or feature that would cause existing functionality to change)

πŸ“š Description

some syntax highlighters and other packages which transform markdown codeblocks (e.g. mermaid) expect the language of the code block to be passed via class attribute. this fixed that.

for context: i ran into this issue trying to add rehype-mermaidjs to rehypePlugins.

πŸ“ Checklist

  • I have linked an issue or discussion.
  • I have updated the documentation accordingly.

@netlify
Copy link

netlify bot commented May 12, 2023

βœ… Deploy Preview for nuxt-content canceled.

Built without sensitive environment variables

Name Link
πŸ”¨ Latest commit 183ecdb
πŸ” Latest deploy log https://app.netlify.com/sites/nuxt-content/deploys/645e469a49698d000818c6e4

@farnabaz farnabaz changed the title fix: pass codeblock language as classname fix(code-block): pass language as class name May 15, 2023
@farnabaz farnabaz merged commit cfe0afc into nuxt:main May 15, 2023
@stefanprobst stefanprobst deleted the fix/pass-codeblock-language-as-classname branch May 15, 2023 12:17
@farnabaz farnabaz mentioned this pull request Jun 13, 2023
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