Generate manual overviews from github_docs

This commit is contained in:
Marc Froehlich
2026-07-06 03:02:49 +02:00
parent 248a7c0462
commit dfe5e28877
54 changed files with 2857 additions and 31 deletions
+22
View File
@@ -0,0 +1,22 @@
const md = require('markdown-it')()
const anchor = require('markdown-it-anchor')
md.use(anchor, {
level: 1,
// slugify: string => string,
permalink: false,
// renderPermalink: (slug, opts, state, permalink) => {},
permalinkClass: 'header-anchor',
permalinkSymbol: '¶',
permalinkBefore: false
})
const src = `# First header
Lorem ipsum.
## Next section!
This is totaly awesome.`
console.log(md.render(src))