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
I was trying to use ++ as the tag for underline when converting to and from Markdown by adding a custom TextFormatTransformer. Unfortunately this fails with an invalid regular expression error.
Looking at the source code, it seems to me like this could be fixed by escaping the plus sign in MarkdownImport, but I don't know if there are any unwanted side-effects of doing that.
// This...consttagRegExp=tag.replace(/(\*|\^)/g,'\\$1');// ...should also include the plus sign?consttagRegExp=tag.replace(/(\*|\^|\+)/g,'\\$1');
This is the TextFormatTransformer I was trying to use.
The text was updated successfully, but these errors were encountered:
tehapo
changed the title
MarkdownImport does not escape plus signs in the provided tag
Bug: MarkdownImport does not escape plus signs in the provided tag
Dec 20, 2022
tehapo
changed the title
Bug: MarkdownImport does not escape plus signs in the provided tag
Bug: MarkdownImport does not escape plus signs in the provided tag
Dec 20, 2022
I was trying to use
++
as the tag for underline when converting to and from Markdown by adding a customTextFormatTransformer
. Unfortunately this fails with an invalid regular expression error.Looking at the source code, it seems to me like this could be fixed by escaping the plus sign in MarkdownImport, but I don't know if there are any unwanted side-effects of doing that.
This is the
TextFormatTransformer
I was trying to use.The text was updated successfully, but these errors were encountered: