fix backslash inserted in links upon edit (#2246)
* fix backslash appear in url with inline markdown sequences * fix markdown chars not escaping on edit
This commit is contained in:
@@ -112,6 +112,7 @@ export const LinkRule: InlineMDRule = {
|
||||
};
|
||||
|
||||
export const INLINE_SEQUENCE_SET = '[*_~`|]';
|
||||
export const CAP_INLINE_SEQ = `${URL_NEG_LB}${INLINE_SEQUENCE_SET}`;
|
||||
const ESC_SEQ_1 = `\\\\(${INLINE_SEQUENCE_SET})`;
|
||||
const ESC_REG_1 = new RegExp(`${URL_NEG_LB}${ESC_SEQ_1}`);
|
||||
export const EscapeRule: InlineMDRule = {
|
||||
|
||||
Reference in New Issue
Block a user