Gathering detailed insights and metrics for @ckienle/markdown-it-chain
Gathering detailed insights and metrics for @ckienle/markdown-it-chain
Gathering detailed insights and metrics for @ckienle/markdown-it-chain
Gathering detailed insights and metrics for @ckienle/markdown-it-chain
A chaining API like webpack-chain but for markdown-it.
npm install @ckienle/markdown-it-chain
Typescript
Module System
Min. Node Version
Node Version
NPM Version
JavaScript (100%)
Total Downloads
0
Last Day
0
Last Week
0
Last Month
0
Last Year
0
MIT License
30 Commits
1 Watchers
26 Branches
1 Contributors
Updated on Nov 08, 2019
Latest Version
0.1.0
Package Id
@ckienle/markdown-it-chain@0.1.0
Unpacked Size
10.08 kB
Size
3.99 kB
File Count
8
NPM Version
6.11.3
Node Version
12.12.0
Cumulative downloads
Total Downloads
Last Day
0%
NaN
Compared to previous day
Last Week
0%
NaN
Compared to previous week
Last Month
0%
NaN
Compared to previous month
Last Year
0%
NaN
Compared to previous year
1
1
A chaining API like webpack-chain but for markdown-it.
Yarn
1yarn add -dev markdown-it-chain
npm
1npm install --save-dev markdown-it-chain
1// Require the markdown-it-chain module. This module exports a single 2// constructor function for creating a configuration API. 3const Config = require('markdown-it-chain') 4 5// Instantiate the configuration with a new API 6const config = new Config() 7 8// Make configuration changes using the chain API. 9// Every API call tracks a change to the stored configuration. 10config 11 // Interact with 'options' in new MarkdownIt 12 // Ref: https://markdown-it.github.io/markdown-it/#MarkdownIt.new 13 .options 14 .html(true) // equal to .set('html', true) 15 .linkify(true) 16 .end() 17 18 // Interact with 'plugins' 19 .plugin('toc') 20 // The first parameter is the plugin module, which may be a function 21 // while the second parameter is an array of parameters accepted by the plugin. 22 .use(require('markdown-it-table-of-contents'), [{ 23 includeLevel: [2, 3] 24 }]) 25 // Move up one level, like .end() in jQuery. 26 .end() 27 28 .plugin('anchor') 29 .use(require('markdown-it-anchor'), [{ 30 permalink: true, 31 permalinkBefore: true, 32 permalinkSymbol: '$' 33 }]) 34 // Apply this plugin before toc. 35 .before('toc') 36 37// Create a markdown-it instance using the above configuration 38const md = config.toMd() 39md.render('[[TOC]] \n # h1 \n ## h2 \n ## h3 ')
In order to ensure the consistency of the chained API world, markdown-it-chain
is developed directly on the basis of webpack-chain and ensures that the usage is completely consistent.
Here are some things worth reading that come from webpack-chain
:
markdown-it-chain © ULIVZ, Released under the MIT License.
Authored and maintained by ULIVZ with help from contributors (list).
github.com/ulivz · GitHub @ULIVZ · Twitter @_ulivz
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
license file detected
Details
Reason
Found 0/28 approved changesets -- score normalized to 0
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
project is not fuzzed
Details
Reason
security policy file not detected
Details
Reason
branch protection not enabled on development/release branches
Details
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
Reason
70 existing vulnerabilities detected
Details
Score
Last Scanned on 2025-07-07
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More