feat(markdown): add additional markdown config for documentation on instering new custom components slots udner speciified markdown attributes and tags

This commit is contained in:
Anda Toshiki 2023-09-16 21:04:35 -07:00
parent b79ecd83a5
commit 098a913bea

View File

@ -14,5 +14,11 @@ export const markdown: MarkdownOptions = {
config: md => { config: md => {
// use more markdown-it plugins! // use more markdown-it plugins!
md.use(mdkatex), md.use(mdTasklist), md.use(mdCaption), md.use(mdLink) md.use(mdkatex), md.use(mdTasklist), md.use(mdCaption), md.use(mdLink)
// insert specific custom vue layout template slots under a markdown tag attributes (currenlty disabled and unncessary because applied via markdowntransform component)
// md.renderer.rules.heading_close = (tokens, idx, options, env, slf) => {
// let htmlResult = slf.renderToken(tokens, idx, options);
// if (tokens[idx].tag === 'h1') htmlResult += `\n<ClientOnly><PageInfo /></ClientOnly>`;
// return htmlResult;
// }
}, },
} }