
Product
Introducing Reachability for PHP
Reachability analysis for PHP is now available in experimental, helping teams identify which vulnerabilities are actually exploitable.
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 9 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.

Product
Reachability analysis for PHP is now available in experimental, helping teams identify which vulnerabilities are actually exploitable.

Product
Export Socket alert data to your own cloud storage in JSON, CSV, or Parquet, with flexible snapshot or incremental delivery.

Research
/Security News
Bitwarden CLI 2026.4.0 was compromised in the Checkmarx supply chain campaign after attackers abused a GitHub Action in Bitwarden’s CI/CD pipeline.