We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Information:
Description When using the plugin match-braces alongside custom-class plugin it works fine, unless you declare a custom prefix.
match-braces
custom-class
e.g.
Prism.plugins.customClass.prefix('pr-');
Most likely it's because this line is using the wrong selectors.
So, instead of:
var punctuation = Array.prototype.slice.call(code.querySelectorAll('span.token.punctuation'));
It should be something like:
var punctuation = Array.prototype.slice.call(code.querySelectorAll(`span.${prefix}token.${prefix}punctuation`));
I'm not sure how to get the prefix though, but I believe it's stored somewhere.
Example JSFiddle
The text was updated successfully, but these errors were encountered:
RunDevelopment
Successfully merging a pull request may close this issue.
Information:
Description
When using the plugin
match-braces
alongsidecustom-class
plugin it works fine, unless you declare a custom prefix.e.g.
Most likely it's because this line is using the wrong selectors.
So, instead of:
It should be something like:
I'm not sure how to get the prefix though, but I believe it's stored somewhere.
Example
JSFiddle
The text was updated successfully, but these errors were encountered: