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: escape ]
in code-block filenames
#22389
Conversation
Run & review this pull request in StackBlitz Codeflow. |
β Live Preview ready!
|
[
in code-block filenames]
in code-block filenames
As mentioned, this'll look wrong until Docus v1.14.4 is used. |
Nuxt.com doesn't use docus, and has already updated to the latest Nuxt content version. |
Thanks for clearing that up. |
Ah! |
In fact, there is the issue even in the content.nuxtjs.org website. It seems that https://github.com/nuxt/content/pull/2169/files is not really correct π (sorry) |
Created an issue nuxt/content#2201 |
Thank you β€οΈ |
I have no idea, why it shouldn't work with nuxt.com Since docus was updated in nuxt content, it works there... https://stackblitz.com/edit/github-1jd81n?file=content%2Findex.md |
Maybe it's an issue with the preview rather than the code. |
π Linked issue
β Type of change
π Description
Adds
\\
to every code-block filename with]
to escape it. This prevents the filename from being cropped.Related & Info
See this PR nuxt/content#2169, released in
nuxt/content
sincev2.7.2
, to fix this with an escape characterThe fix was already shipped in Docus
v1.14.4
with nuxt-themes/docus@44aefd5, but it seems, that this version isn't used here currently.So if this is accepted, before the deps use the latest Docus, the filenames may look like in the following example with an extra
\
before cutting off the filename.Current Example
Here is an example image of how it currently looks, without escaping:
The route, where it is from: https://nuxt.com/docs/guide/directory-structure/server#using-a-nested-router
π Checklist