markdown-editor icon indicating copy to clipboard operation
markdown-editor copied to clipboard

feat(core, Сolor): added support for custom escape characters

Open makhnatkin opened this issue 10 months ago • 2 comments

The esc() method now checks state.escapeCharacters, if defined, and includes its characters in the escape regex.
This allows context-specific escaping — for example, in the color mark, to escape parentheses in user input without interfering with the markup syntax.

makhnatkin avatar Apr 30 '25 15:04 makhnatkin

Preview is ready.

gravity-ui-bot avatar Apr 30 '25 15:04 gravity-ui-bot

Visual Tests Report is ready.

gravity-ui-bot avatar Apr 30 '25 15:04 gravity-ui-bot

https://github.com/nkjmsss/markdown-it-color/pull/17

makhnatkin avatar May 14 '25 09:05 makhnatkin

Found one issue — in markup mode, using the toolbar button doesn’t add escaping. Since we work with plain text there, I’m not sure how easy it is to support

https://github.com/user-attachments/assets/b8102fd1-93cd-473e-a7aa-17f3935acf42

makhnatkin avatar May 23 '25 10:05 makhnatkin