mirror of
https://github.com/revoltchat/revite.git
synced 2024-11-25 08:30:58 -05:00
Remove strict on KaTeX, change error.
This commit is contained in:
parent
719e5b4dd8
commit
463aa79356
4 changed files with 3 additions and 26 deletions
|
@ -67,6 +67,8 @@ export const md: MarkdownIt = MarkdownIt({
|
|||
throwOnError: false,
|
||||
maxExpand: 0,
|
||||
maxSize: 10,
|
||||
strict: false,
|
||||
errorColor: "var(--error)",
|
||||
});
|
||||
|
||||
// TODO: global.d.ts file for defining globals
|
||||
|
|
|
@ -65,29 +65,7 @@ export const SimpleRenderer: RendererRoutines = {
|
|||
{ type: "StayAtBottom", smooth: SMOOTH_SCROLL_ON_RECEIVE },
|
||||
);
|
||||
},
|
||||
edit: async (renderer, id, patch) => {
|
||||
// ! FIXME: verify if this is needed anymore
|
||||
/*const channel = renderer.channel;
|
||||
if (!channel) return;
|
||||
if (renderer.state.type !== "RENDER") return;
|
||||
|
||||
const messages = [...renderer.state.messages];
|
||||
const index = messages.findIndex((x) => x._id === id);
|
||||
|
||||
if (index > -1) {
|
||||
const message = { ...messages[index], ...mapMessage(patch) };
|
||||
messages.splice(index, 1, message);
|
||||
|
||||
renderer.setState(
|
||||
channel,
|
||||
{
|
||||
...renderer.state,
|
||||
messages,
|
||||
},
|
||||
{ type: "StayAtBottom" },
|
||||
);
|
||||
}*/
|
||||
},
|
||||
edit: async () => {},
|
||||
delete: async (renderer, id) => {
|
||||
const channel = renderer.channel;
|
||||
if (!channel) return;
|
||||
|
|
|
@ -7,8 +7,6 @@ import { Channel } from "revolt.js/dist/maps/Channels";
|
|||
|
||||
import { useEffect, useState } from "preact/hooks";
|
||||
|
||||
import { useClient } from "../../../context/revoltjs/RevoltClient";
|
||||
|
||||
import Button from "../../../components/ui/Button";
|
||||
import Checkbox from "../../../components/ui/Checkbox";
|
||||
import Tip from "../../../components/ui/Tip";
|
||||
|
|
|
@ -30,7 +30,6 @@ import { useIntermediate } from "../../../context/intermediate/Intermediate";
|
|||
import CollapsibleSection from "../../../components/common/CollapsibleSection";
|
||||
import Tooltip from "../../../components/common/Tooltip";
|
||||
import Button from "../../../components/ui/Button";
|
||||
import Checkbox from "../../../components/ui/Checkbox";
|
||||
import ColourSwatches from "../../../components/ui/ColourSwatches";
|
||||
import ComboBox from "../../../components/ui/ComboBox";
|
||||
import InputBox from "../../../components/ui/InputBox";
|
||||
|
|
Loading…
Reference in a new issue