diff --git a/routes/_app.tsx b/routes/_app.tsx index 9c3c5b4..a73fc70 100644 --- a/routes/_app.tsx +++ b/routes/_app.tsx @@ -38,6 +38,7 @@ export default function App({ Component }: PageProps) { type='image/x-icon' /> +
diff --git a/routes/imports/markdown_css.ts b/routes/imports/markdown_css.ts new file mode 100644 index 0000000..134c45b --- /dev/null +++ b/routes/imports/markdown_css.ts @@ -0,0 +1,14 @@ +import { Handlers } from '$fresh/server.ts' +import { CSS, KATEX_CSS } from 'gfm' + +export const handler: Handlers = { + GET() { + const styles = CSS + KATEX_CSS + return new Response(styles, { + headers: { + 'Content-Type': 'text/css; charset=utf-8', + // TODO add cache headers and eTag + }, + }) + }, +}