
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
markdown-it-enhancer
Advanced tools
This is a fork from markdown-it, there are some changes in this fork:
@types/markdown-it.highlight function.In order to sync the update of upstream, the patch version of this fork would start with 100.
Example:
When There are some fix in this fork. It will:
npm install markdown-it-enchacer
# yarn add markdown-it-enchacer
# pnpm add markdown-it-enchacer
import { MarkdownIt } from "markdown-it-enchancer";
// delay s seconds.
const delay = (s) => {
return new Promise((resolve) => {
setTimeout(() => {
resolve();
}, s * 1000);
});
};
const md = new MarkdownIt();
// push a async ruler
md.block.ruler.push(
"async_rule",
async (_state, _startLine, _endLine, _slient) => {
// async operation
await delay(3);
},
);
import { MarkdownIt } from "markdown-it-enchancer";
// delay s seconds.
const delay = (s) => {
return new Promise((resolve) => {
setTimeout(() => {
resolve();
}, s * 1000);
});
};
const md = new MarkdownIt();
// set a async render rule.
md.renderer.rules.test = async (tokens, idx, options, env, renderer) => {
// some async operation
await delay(3);
return "test";
};
import { MarkdownIt } from "markdown-it-enchancer";
// delay s seconds.
const delay = (s) => {
return new Promise((resolve) => {
setTimeout(() => {
resolve();
}, s * 1000);
});
};
const md = new MarkdownIt();
md
.use(async (md, arg1, arg2) => {
// some async operation
await delay(3);
}, 'arg1', 'arg2')
.use(async (md, arg1, arg2) => {
// some async operation
await delay(3);
}, 'arg1', 'arg2')
.use(async (md, arg1, arg2) => {
// some async operation
await delay(3);
}, 'arg1', 'arg2');
// you must exec `await md.isReady()` to ensure the initializations of all plugins are success.
await md.isReady();
highlight functionimport { MarkdownIt } from "markdown-it-enchancer";
// delay s seconds.
const delay = (s) => {
return new Promise((resolve) => {
setTimeout(() => {
resolve();
}, s * 1000);
});
};
const md = new MarkdownIt({
async highlight() {
// async operation
await delay(3);
return "highlight function";
}
});
Env support maxAutoCompletedCells property. See #1000
import { MarkdownIt } from "markdown-it-enchancer";
const md = new MarkdownIt();
md.render('md content', {
maxAutoCompletedCells: 100
});
There are some plugins that migrate to markdown-it-enhancer.
FAQs
Markdown-it - modern pluggable markdown parser.
We found that markdown-it-enhancer demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.