A markdown-it plugin for wrapping headings in arbitrary markup.
Перейти к файлу
renovate[bot] c425513ef5
Update dependency markdown-it to v12.3.2 [SECURITY] (#110)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2022-01-15 16:16:43 +00:00
.circleci Fix npm auth 2020-12-18 12:06:21 +00:00
.gitignore Initial commit 2020-07-24 13:50:12 +01:00
.prettierignore Add and run prettier 2020-07-30 19:52:16 +01:00
.prettierrc Add and run prettier 2020-07-30 19:52:16 +01:00
LICENSE.txt Add license 2020-07-30 11:51:46 +01:00
README.md migrate to circle-ci (#11) 2020-12-17 10:58:20 +00:00
index.js Add and run prettier 2020-07-30 19:52:16 +01:00
index.test.js Add and run prettier 2020-07-30 19:52:16 +01:00
package.json Update dependency markdown-it to v12.3.2 [SECURITY] (#110) 2022-01-15 16:16:43 +00:00
renovate.json Update renovate.json 2021-01-13 19:02:53 +00:00
yarn.lock Update dependency markdown-it to v12.3.2 [SECURITY] (#110) 2022-01-15 16:16:43 +00:00

README.md

markdown-it-heading-wrapper

CircleCI

A plugin very much inspired by and based on markdown-it-header-sections, albeit in this case it's designed to allow for arbitrary markup wrappers rather than just a single section.

The idea behind this is to allow a document author to focus on pure documentation and to have the renderer add boilerplate markup to affect a specific layout.

Usage

  markdown = md({
    html: true,
  }).use(require('markdown-it-heading-wrapper'), {
    h1: {
      before: '<section>',
      after: '</section>',
    },
  });