mirror of https://github.com/usememos/memos
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
* fix: code blocks of unknown languages cause HTML injection A code block of unknown language (that is, a language not treated as special by Memos and not handled by highlight.js) should fall back on rendering its plaintext content. However, the content is never properly escaped before it is appended to the DOM, and thus any string that happens to contain HTML is unsafely rendered. This commit fixes the issue by ensuring that, when none of the previous cases handle the text, any HTML entities are escaped first. * Update CodeBlock.tsx to conform to eslint |
1 year ago | |
---|---|---|
.. | ||
public | 1 year ago | |
src | 1 year ago | |
.eslintrc.json | 1 year ago | |
.gitignore | 2 years ago | |
.prettierrc.js | 2 years ago | |
README.md | 1 year ago | |
components.json | 1 year ago | |
index.html | 1 year ago | |
package.json | 1 year ago | |
pnpm-lock.yaml | 1 year ago | |
postcss.config.js | 4 years ago | |
tailwind.config.js | 1 year ago | |
tsconfig.json | 2 years ago | |
vercel.json | 1 year ago | |
vite.config.ts | 1 year ago |