mirror of
https://github.com/andatoshiki/toshiki-notebook.git
synced 2026-06-06 09:16:45 +00:00
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:
parent
b79ecd83a5
commit
098a913bea
@ -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;
|
||||||
|
// }
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user