
Security Fundamentals
Turtles, Clams, and Cyber Threat Actors: Shell Usage
The Socket Threat Research Team uncovers how threat actors weaponize shell techniques across npm, PyPI, and Go ecosystems to maintain persistence and exfiltrate data.
commonmark-loader
Advanced tools
A Webpack loader for Markdown rendering using Commonmark.
npm install markdown-loader
Use the following loader configuration in your webpack.config.js
file (webpack 2.x and later):
return {
module: {
rules: [
{
test: /\.md$/,
use: "commonmark-loader"
}
]
}
}
All commonmark options are available, together with some loader specific options.
<section>
to be used for wrapping the rendered output. This feature is provided for integration with single file components, such as Vue's.true
, source position information for block-level elements will be rendered in the data-sourcepos
attribute (for HTML) or the sourcepos
attribute (for XML).true
, straight quotes '"
will be made curly, --
will be changed to an en dash, ---
will be changed to an em dash, and ...
will be changed to ellipses.true
, raw HTML will not be passed through to HTML output (it will be replaced by comments), and potentially unsafe URLs in links and images (those beginning with javascript:
, vbscript:
, file:
, and with a few exceptions data:
) will be replaced with empty strings.return {
module: {
rules: [{
test: /\.md$/,
use: [
{
loader: "commonmark-loader",
options: {
sourcepos: true,
safe: true,
smart: true,
softbreak: '<br />',
esc: function(str) { return str; }
}
}
]
}]
}
}
To use it as a Vue template language <template lang='md'>
, provide the following configuration for your vue loaders:
loaders['md'] = {
loader: "commonmark-loader"
};
FAQs
A Webpack loader for Markdown rendering using Commonmark.
The npm package commonmark-loader receives a total of 2 weekly downloads. As such, commonmark-loader popularity was classified as not popular.
We found that commonmark-loader 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 Fundamentals
The Socket Threat Research Team uncovers how threat actors weaponize shell techniques across npm, PyPI, and Go ecosystems to maintain persistence and exfiltrate data.
Security News
At VulnCon 2025, NIST scrapped its NVD consortium plans, admitted it can't keep up with CVEs, and outlined automation efforts amid a mounting backlog.
Product
We redesigned our GitHub PR comments to deliver clear, actionable security insights without adding noise to your workflow.