-
-
Notifications
You must be signed in to change notification settings - Fork 625
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
Document and define ProseCodeInline's props #2116
Comments
As I can assume, there is no standards except. You already can use highlighting for inline code and meta for this too! Let this is your markdown
It works out of the box. Moreover, you can modify / assert passed properties via mapping data type In my case, I receive and pass the data as is. But I definitely will use assertions (like I post models that cause explicit 500 error): In case if you still have issues with out-of-the-box highlighting, I can text you back This is my content settings |
My issue is primarily about documentation and props for discoverability. Good point about |
The syntax used for the Also, But I agree, that it would be probably best to standardize either |
In documentation and props yes but the implementation should remain flexible.
Exactly. My goal is to help people overriding it. I got lost in the source to figure out why the documentation shows I'm brand new to Nuxt in general. I love it but the docs often feel sparse. |
If you see an improvement, please feel free to open a PR @texastoland 😊 |
May I standardize on |
I'd prefer But I can also see, that |
I prefer |
@texastoland do you still plan to open a PR? |
Yeah sorry I'll get it ASAP 🙏🏼 |
Closing for now but I'll grab it next time I use this API 🤘🏼 |
Is your feature request related to a problem? Please describe
https://github.com/nuxt/content/blob/main/src/runtime/components/Prose/ProseCodeInline.vue doesen't document or define props.
Describe the solution you'd like
lang
orlanguage
likeProseCode
Acceptmeta
likeProseCode
(
ProseCode
uses a special syntax butProseCodeInline
doesn't need it)Additional context
Where language is read for Shiki:
content/src/runtime/transformers/shiki/shiki.ts
Line 33 in cb653b2
The text was updated successfully, but these errors were encountered: