You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
What will solve the issue, is to have some attribute in the <pre> tag that has the language name, like data-lang="js" or rel="html" or even inside the classname like: class="astro-code js":
This make sense to me, but I think we should keep feature requests in https://github.com/withastro/roadmap, so closing this for now. If you'd like to contribute, the change would be at:
What version of
astro
are you using?2.1.7
Are you using an SSR adapter? If so, which one?
None
What package manager are you using?
pnpm
What operating system are you using?
Mac
What browser are you using?
Chrome
Describe the Bug
Currently there's no way to add a language label on top of the shiki code block, currently we are rendering the shiki code block this way:
What will solve the issue, is to have some attribute in the
<pre>
tag that has the language name, likedata-lang="js"
orrel="html"
or even inside the classname like:class="astro-code js"
:And using css we will render the label:
The result would be something like the following:
Currently I found only two mentions (discussions) on this issue:
Link to Minimal Reproducible Example
N/A
Participation
The text was updated successfully, but these errors were encountered: