You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
it is difficult to control the use of attributes in user-generated content
But some of our extensions assume the use of attribute syntax {} and expect attributes to be automatically parsed.
Proposal
I suggest stop using markdown-it-attrs plugin by default in transformer. Extensions should parse attributes for themselves. Utils package already has a custom parser for attributes.
Plan
Use AttrsParser from @diplodoc/utils in extensions
Add option to transformer to disable markdown-it-attrs plugin
enableMarkdownAttrs option with default value true
In next transformer major version disable markdown-it-attrs plugin by default
The text was updated successfully, but these errors were encountered:
Description
There are several important issues when using
markdown-it-attrs
plugin:But some of our extensions assume the use of attribute syntax
{}
and expect attributes to be automatically parsed.Proposal
I suggest stop using
markdown-it-attrs
plugin by default in transformer. Extensions should parse attributes for themselves. Utils package already has a custom parser for attributes.Plan
AttrsParser
from@diplodoc/utils
in extensionsmarkdown-it-attrs
pluginenableMarkdownAttrs
option with default valuetrue
markdown-it-attrs
plugin by defaultThe text was updated successfully, but these errors were encountered: