saberland/saber

Inject markdown headers as page attributes #51

egoist posted onGitHub

Add a markdown-it plugin to inject markdown headers [{ text: 'Hello', slug: hello' }] as page.attributes.markdownHeaders, similar to Vuepress's this.$page.headers.

When to inject:

  • page.attributes.injectMarkdownHeaders === true
  • Or page.attributes.injectMarkdownHeaders !== false && api.config.markdown.injectMarkdownHeaders

The injected markdown headers can be used by https://github.com/egoist/saber/pull/49


Fund this Issue

$60.00
Rewarded

Rewarded pull request

Recent activities

krmax44 was rewarded by egoist for saberland/saber# 51
almost 6 years ago
krmax44 submitted an output to  egoist/ saber# 51
almost 6 years ago