-
Notifications
You must be signed in to change notification settings - Fork 36
Open
Labels
documentationImprovements or additions to documentationImprovements or additions to documentation
Description
https://expressive-code.com/guides/developing-plugins/ has these lines:
hooks: {
preprocessCode: (context) => {
// Only apply this to code blocks with the `error-preview` meta
if (!context.codeBlock.meta.includes('error-preview')) return
However, meta is the whole meta string, which could contain stuff like:
my-other-plugin del="error-preview"
which would also activate this plugin unintentionally.
Metadata
Metadata
Assignees
Labels
documentationImprovements or additions to documentationImprovements or additions to documentation