-
Notifications
You must be signed in to change notification settings - Fork 5
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
feat: support code block as component props #67
Conversation
Possible regression with https://docus.dev/api/components#codegroup edit: I confirm, it breaks this component behaviour. A possible workaround is to use code block as props only with ```yaml and not ```yaml [title] edit 2: Fixed. See below. |
Any feedback about this feature ? |
Thank you for the pull-request. |
I've just fixed this behavior. Now only ```yaml can be used, so components like CodeGroup are not impacted by this feature. A possible alternative is to use something like |
I believe that this could be OK:
|
Hi! You suggest using
|
|
Done. |
This PR attempt to fix this issue nuxt/content#1260
The goal is to write props components like a code block for better readability with a markdown formatter that don't know MDC syntax :
(remove the
\
, it's break gfm).I added this feature with
experimental.componentCodeBlockProps
MDC options.