Allow rendering messages as plaintext (#805)
authorginnyTheCat <ginnythecat@lelux.net>
Wed, 14 Sep 2022 09:00:06 +0000 (11:00 +0200)
committerGitHub <noreply@github.com>
Wed, 14 Sep 2022 09:00:06 +0000 (14:30 +0530)
commit15c1f6dadf2ade072ffd6fb8ad51781953de88d8
treed058d6cc6085d3b358607e226c5d4303db8dd126
parentefda9991f2e92dfbf9e5fc7ae7aa7dddbc8c0ce6
Allow rendering messages as plaintext (#805)

* Parse room input from user id and emoji

* Add more plain outputs

* Add reply support

* Always include formatted reply

* Add room mention parser

* Allow single linebreak after codeblock

* Remove margin from math display blocks

* Escape shrug

* Rewrite HTML tag function

* Normalize def keys

* Fix embedding replies into replies

* Don't add margin to file name

* Collapse spaces in HTML message body

* Don't crash with no plaintext rendering

* Add blockquote support

* Remove ref support

* Fix image html rendering

* Remove debug output

* Remove duplicate default option value

* Add table plain rendering support

* Correctly handle paragraph padding when mixed with block content

* Simplify links if possible

* Make blockquote plain rendering better

* Don't error when emojis are matching but not found

* Allow plain only messages with newlines

* Set user id as user mention fallback

* Fix mixed up variable name

* Replace replaceAll with replace
src/app/atoms/math/Math.jsx
src/app/atoms/math/Math.scss [new file with mode: 0644]
src/app/molecules/message/Message.jsx
src/app/molecules/message/Message.scss
src/app/organisms/room/RoomViewInput.jsx
src/client/action/navigation.js
src/client/state/RoomsInput.js
src/client/state/navigation.js
src/util/markdown.js
src/util/matrixUtil.js