Support code blocks in Aside titles #1915
Replies: 4 comments 1 reply
-
I did some research of this and I think this discussion on the remarkjs repo should be of help. I'm also willing to attempt a fix in a PR. |
Beta Was this translation helpful? Give feedback.
-
Linking withastro/docs#8711 here which reported a need for this also in Astro’s Docs. |
Beta Was this translation helpful? Give feedback.
-
Opened a PR for this, the solution ended up being simpler than I thought cause the markdown in the aside title was already being parsed correctly, we just needed to change the logic to use the whole mdast node for it. |
Beta Was this translation helpful? Give feedback.
-
Starting with Starlight |
Beta Was this translation helpful? Give feedback.
-
What version of
starlight
are you using?0.23.1
What is your idea?
The aside component when used from markdown should support code
Why is this feature necessary?
Plenty of cases where an aside is some warning / note about code, and it's helpful to highlight the function name or whatever you are writing as code. Regardless is breaks expectations when code in similar places just next to the aside do work fine.
Do you have examples of this feature in other projects?
No response
Participation
Beta Was this translation helpful? Give feedback.
All reactions