Memos is an open-source, self-hosted note-taking app that brings your everyday thoughts together in a personal timeline. Your data stays yours, and you choose what to keep private or share.
Go dockerfossgomarkdownmemomicroblognote-takingnotesopen-sourceown-your-datareactself-hostedsqlitetimeline
chore: fix highlight code
Stevena76b86f18a2c
diff --git a/web/src/components/MemoContent/CodeBlock.tsx b/web/src/components/MemoContent/CodeBlock.tsxindex d816884ee..0532664f2 100644--- a/web/src/components/MemoContent/CodeBlock.tsx+++ b/web/src/components/MemoContent/CodeBlock.tsx@@ -12,7 +12,7 @@ interface Props extends BaseProps {const CodeBlock: React.FC<Props> = ({ language, content }: Props) => {const formatedLanguage = (language || "").toLowerCase() || "text";- let highlightedCode = hljs.highlightAuto(content).value;+ let highlightedCode = content;// Users can set Markdown code blocks as `__html` to render HTML directly.if (formatedLanguage === "__html") {