diff --git a/app/soapbox/features/compose/editor/transformers/index.ts b/app/soapbox/features/compose/editor/transformers/index.ts index bc8dbee16..5266daadc 100644 --- a/app/soapbox/features/compose/editor/transformers/index.ts +++ b/app/soapbox/features/compose/editor/transformers/index.ts @@ -57,6 +57,28 @@ export const UNESCAPE_ITALIC_UNDERSCORE: TextMatchTransformer = { type: 'text-match', }; +const UNESCAPE_ITALIC_STAR_IMPORT_REGEX = + /([\*])(? null, + importRegExp: UNESCAPE_ITALIC_STAR_IMPORT_REGEX, + regExp: UNESCAPE_ITALIC_STAR_REGEX, + replace: (textNode, _) => { + const notEscapedStarRegex = /(?