
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-alert
Advanced tools
Markdown-it Alert plugin to be able to create alert, success and tip messages in your Markdown code.
::: info This is an alert block, with the type info :::
Compatible with Bootstrap alerts.
npm install markdown-it-alert
Use plugin;
import md from "markdown-it";
import alert from "markdown-it-alert";
md().use(alert);
You can use any type of alert you want, proposed is to use the same type for everything; warning,error,tip,success, or any self determined type.
::: warning Warning :::
::: error Error :::
::: tip Tip :::
::: success Success :::
Links enables the usage of links within your messages. By default this is turned on but can be disabled by;
md().use(alert, { links: false });
By default the class styles are compatible with bootstrap (alert alert-success), but you can also use the BEM syntax (alert alert--success).
md().use(alert, { bem: true });
A role is always given by default but can be disabled'
md().use(alert, { role: false });
The default element is a div but this can be changed by adding a tag to the config
md().use(alert, { tag: "span" });
All alerts with the following types will be caught and created.
This list can be changed by giving your own values as an array;
md().use(alert, { types: ["my", "own", "values"] });
Now you can use:
::: own
Custom alerts
:::
::: success
Hello world! [Link](#).
:::
Gets converted to:
<div class="alert alert-success" role="alert">
<p>Hello world! <a href="#" class="alert-link">Link</a>.</p>
</div>
::: success Hello world! Link. :::
Credits for (https://github.com/nunof07/markdown-it-alerts) for the original package. Mainly copied and refactored everything in order to get it properly working in Typescript based environments.
FAQs
Create alerts for markdown
The npm package markdown-it-alert receives a total of 208 weekly downloads. As such, markdown-it-alert popularity was classified as not popular.
We found that markdown-it-alert demonstrated a not healthy version release cadence and project activity because the last version was released 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.