mirror of
https://github.com/andatoshiki/toshiki-home-nuxt3.git
synced 2026-06-06 06:46:00 +00:00
33 lines
774 B
TypeScript
Executable File
33 lines
774 B
TypeScript
Executable File
import type { IContentOptions } from '@nuxt/content/types/index'
|
|
|
|
// prism highlighter
|
|
const Content: IContentOptions = {
|
|
liveEdit: false,
|
|
dir: 'content',
|
|
markdown: {
|
|
prism: {
|
|
theme: 'prism-themes/themes/prism-one-dark.css'
|
|
},
|
|
/* @ts-ignore-next-line */
|
|
remarkExternalLinks: {
|
|
target: '_blank',
|
|
rel: 'noreferrer noopener'
|
|
},
|
|
remarkPlugins: [
|
|
[
|
|
'remark-autolink-headings',
|
|
{
|
|
behavior: 'append'
|
|
}
|
|
],
|
|
'remark-math'
|
|
],
|
|
rehypePlugins: [
|
|
// this next line here
|
|
['rehype-katex', { output: 'html' }]
|
|
]
|
|
}
|
|
}
|
|
|
|
export default Content
|