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.
https://expressive-code.com/guides/developing-plugins/ has these lines:
However,
metais the whole meta string, which could contain stuff like:which would also activate this plugin unintentionally.