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

Page subheadings do not have code formatting applied #1485

Closed
DamianGlowala opened this issue Jan 25, 2024 · 4 comments
Closed

Page subheadings do not have code formatting applied #1485

DamianGlowala opened this issue Jan 25, 2024 · 4 comments
Labels

Comments

@DamianGlowala
Copy link
Member

It would be a nice-to-have feature to have any code snippets formatted in the subheadings. An example here:
https://nuxt.com/docs/api/advanced/import-meta

image

@atinux
Copy link
Member

atinux commented Jan 29, 2024

I think we should avoid adding code-formatting for the description as much as possible since this description is also set in the <meta> description @DamianGlowala

@DamianGlowala
Copy link
Member Author

Wouldn't it only modify the visual layer and leave the meta description untouched? (I might be unaware of how these two can possibly be related.)

Copy link
Member

atinux commented Jan 29, 2024

It is possible but so far we will have an hydration error by using the MDC component will create a <p> inside another <p>.

I think this is fine for now for this formatting.

@DamianGlowala
Copy link
Member Author

Alright, let's leave it as is! :) thanks for explaining

@DamianGlowala DamianGlowala closed this as not planned Won't fix, can't repro, duplicate, stale Jan 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants