website/routes/imports/markdown_css.ts

15 lines
317 B
TypeScript

import { CSS, KATEX_CSS } from '@deno/gfm'
import { define } from '../../utils.ts'
export const handler = define.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
},
})
},
})