feat: switch to remark from markdown-it (big)

* replaces old mentions with avatar and display name
* renders things directly through React
* replaces most of the markdown hacks with custom AST components
* adds a tooltip to codeblock "copy to clipboard"
This commit is contained in:
Paul Makles
2022-07-08 14:24:48 +01:00
parent a766183f01
commit 34bb2bbc13
17 changed files with 1815 additions and 623 deletions

View File

@@ -210,10 +210,6 @@ class ModalControllerExtended extends ModalController<Modal> {
const settings = getApplicationState().settings;
switch (link.type) {
case "profile": {
this.push({ type: "user_profile", user_id: link.id });
break;
}
case "navigate": {
history.push(link.path);
break;