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
Hello,
I found that it's possible to call a new function (closure) for processing a standard block/inline type if we have possibility to insert the new tag for that type into the BlockTypes/InlineType array in a particular position (higher than the tag we want to override).
Here is a possible workaround that is working for me:
If you change the addBlockType function to something like this:
Hello,
I found that it's possible to call a new function (closure) for processing a standard block/inline type if we have possibility to insert the new tag for that type into the
BlockTypes
/InlineType
array in a particular position (higher than the tag we want to override).Here is a possible workaround that is working for me:
If you change the
addBlockType
function to something like this:and then in the
onMarkdownInitialized
event calladdBlockType
like this:the tag is inserted into the
BlockTypes
array higher than the existing tagand then the closures are called so it's possible to extend/override standard processing.
The same is true for the
addInlineType
:The text was updated successfully, but these errors were encountered: