Parsing HTML to Markdown AST (#847)
authorginnyTheCat <ginnythecat@lelux.net>
Fri, 16 Sep 2022 15:51:53 +0000 (17:51 +0200)
committerGitHub <noreply@github.com>
Fri, 16 Sep 2022 15:51:53 +0000 (21:21 +0530)
commita8f374dd436ac58ac6101cc39ecabb453f844a4c
treebb5fa7bc9a802165ff19143e18bf5a521463d7f1
parentd43e41e1ba3bc770b26736b422a6c73515aae6e1
Parsing HTML to Markdown AST (#847)

* Force mentions to have a space after the #

* Use types for rendering

* Parse HTML

* Add code block support

* Add table support

* Allow starting heading without a space

* Escape relevant plaintext areas

* Resolve many crashes

* Use better matrix id regex

* Don't match . after id

* Don't parse mentions as links

* Add emote support

* Only emit HTML link if necessary

* Implement review changes
src/app/molecules/message/Message.jsx
src/client/state/Notifications.js
src/util/common.js
src/util/markdown.js