Feature Request: control which Markdown files are processed by Expressive Code #397
delucis
started this conversation in
Feature Requests
Replies: 1 comment
-
|
Hello! We are moving feature requests and support questions to discussions and using issues only for bugs to help better track those going forward. See you in the Discussions tab! |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Support for selectively applying Expressive Code only to some Markdown documents.
We had a request in withastro/starlight#3220 to only apply Expressive Code to documents Starlight controls to allow code in other Markdown pages in a site to look different.
To do that, I suppose EC would need a configuration option to allow specifying the file paths it should process. For example an API something like:
It would also open up the question (at least thinking about an Astro context) of whether multiple EC instances could make sense to have different styles for different parts of a site:
That part is probably not so simple given considerations like the
<Code>component, but wanted to share this here in case people have similar needs or thoughts.Beta Was this translation helpful? Give feedback.
All reactions