Escape markdown sequences (#2208)
authorAjay Bura <32841439+ajbura@users.noreply.github.com>
Fri, 21 Feb 2025 08:19:24 +0000 (19:19 +1100)
committerGitHub <noreply@github.com>
Fri, 21 Feb 2025 08:19:24 +0000 (19:19 +1100)
commit7456c152b78d67e087643463c669364557c9acd8
treeaff5b6c1604959ee8d790fe1a859877223fd83f6
parentb63868bbb56294cb800af05fc7a6cb975deb3a05
Escape markdown sequences (#2208)

* escape inline markdown character

* fix typo

* improve document around custom markdown plugin and add escape sequence utils

* recover inline escape sequences on edit

* remove escape sequences from plain text body

* use `s` for strike-through instead of del

* escape block markdown sequences

* fix remove escape sequence was not removing all slashes from plain text

* recover block sequences on edit
19 files changed:
src/app/components/editor/input.ts
src/app/components/editor/output.ts
src/app/features/room/RoomInput.tsx
src/app/features/room/message/MessageEditor.tsx
src/app/plugins/markdown.ts [deleted file]
src/app/plugins/markdown/block/index.ts [new file with mode: 0644]
src/app/plugins/markdown/block/parser.ts [new file with mode: 0644]
src/app/plugins/markdown/block/rules.ts [new file with mode: 0644]
src/app/plugins/markdown/block/runner.ts [new file with mode: 0644]
src/app/plugins/markdown/block/type.ts [new file with mode: 0644]
src/app/plugins/markdown/index.ts [new file with mode: 0644]
src/app/plugins/markdown/inline/index.ts [new file with mode: 0644]
src/app/plugins/markdown/inline/parser.ts [new file with mode: 0644]
src/app/plugins/markdown/inline/rules.ts [new file with mode: 0644]
src/app/plugins/markdown/inline/runner.ts [new file with mode: 0644]
src/app/plugins/markdown/inline/type.ts [new file with mode: 0644]
src/app/plugins/markdown/internal/index.ts [new file with mode: 0644]
src/app/plugins/markdown/internal/utils.ts [new file with mode: 0644]
src/app/plugins/markdown/utils.ts [new file with mode: 0644]