mirror of
https://github.com/modrinth/code.git
synced 2026-08-25 17:14:50 +00:00
chore: the blog (#5453)
* feat: start on blogpost * feat: images for post * fix: grammar + prerender news + changelog * feat: add discovery in app vid * fix lint * rename new blog md to match title * fix assets directories * remove left over compiled files * update thumbnail --------- Co-authored-by: tdgao <mr.trumgao@gmail.com> Co-authored-by: Prospector <6166773+Prospector@users.noreply.github.com>
This commit is contained in:
co-authored by
tdgao
Prospector
parent
d902b281f7
commit
024e079a7d
@@ -1,5 +1,8 @@
|
||||
import MarkdownIt from 'markdown-it'
|
||||
import { escapeAttrValue, FilterXSS, safeAttrValue, whiteList } from 'xss'
|
||||
import xss from 'xss'
|
||||
|
||||
// @ts-expect-error xss types don't reflect CJS default export shape
|
||||
const { escapeAttrValue, FilterXSS, safeAttrValue, whiteList } = xss
|
||||
|
||||
export const configuredXss = new FilterXSS({
|
||||
whiteList: {
|
||||
|
||||
Reference in New Issue
Block a user