@nuxtjs/mdc
Version:
Nuxt MDC module
48 lines (47 loc) • 1.07 kB
JavaScript
import remarkGFM from "remark-gfm";
import remarkMDC from "remark-mdc";
import rehypeExternalLinks from "rehype-external-links";
import rehypeSortAttributeValues from "rehype-sort-attribute-values";
import rehypeSortAttributes from "rehype-sort-attributes";
import rehypeRaw from "rehype-raw";
import handlers from "./handlers/index.js";
export const defaults = {
remark: {
plugins: {
"remark-mdc": {
instance: remarkMDC
},
"remark-gfm": {
instance: remarkGFM
}
}
},
rehype: {
options: {
handlers,
allowDangerousHtml: true
},
plugins: {
"rehype-external-links": {
instance: rehypeExternalLinks
},
"rehype-sort-attribute-values": {
instance: rehypeSortAttributeValues
},
"rehype-sort-attributes": {
instance: rehypeSortAttributes
},
"rehype-raw": {
instance: rehypeRaw,
options: {
passThrough: ["element"]
}
}
}
},
highlight: false,
toc: {
searchDepth: 2,
depth: 2
}
};