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
md.use(markdownItAttrs, { allowedAttributes: [/^\.markdown-.*$/] // empty array = all attributes are allowed });
Example input:
test{.red .markdown-red}
Current output:
<p>test</p>
Expected output:
<p class="markdown-red">test</p>
The text was updated successfully, but these errors were encountered:
Does the class support regular expression filtering
No not currently. allowedAttributes only scans attribute keys, not values of attributes.
allowedAttributes
Sorry, something went wrong.
Hi 🙂 I'll close this issue as out of scope, as I do not have time to implement it. Of anyone wants to implement, feel free to reopen.
No branches or pull requests
Example input:
Current output:
Expected output:
The text was updated successfully, but these errors were encountered: