Product
Introducing License Enforcement in Socket
Ensure open-source compliance with Socket’s License Enforcement Beta. Set up your License Policy and secure your software!
markdown-it-ins
Advanced tools
The markdown-it-ins package is a plugin for the markdown-it Markdown parser that adds support for the <ins> HTML tag, which is used to denote inserted text. This can be useful for indicating additions or changes in a document.
Insertions
This feature allows you to use the ++text++ syntax in your Markdown to denote inserted text, which will be rendered as <ins>text</ins> in HTML.
const md = require('markdown-it')();
const markdownItIns = require('markdown-it-ins');
md.use(markdownItIns);
const result = md.render('++inserted text++');
console.log(result); // Outputs: <p><ins>inserted text</ins></p>
The markdown-it-mark package is a plugin for markdown-it that adds support for the <mark> HTML tag, which is used to highlight text. While markdown-it-ins focuses on insertions, markdown-it-mark is used for highlighting text.
The markdown-it-sub package is a plugin for markdown-it that adds support for the <sub> HTML tag, which is used to denote subscript text. This is different from markdown-it-ins, which is used for insertions.
The markdown-it-sup package is a plugin for markdown-it that adds support for the <sup> HTML tag, which is used to denote superscript text. This is another type of text formatting that is distinct from the insertions provided by markdown-it-ins.
<ins>
tag plugin for markdown-it markdown parser.
++inserted++
=> <ins>inserted</ins>
Markup uses the same conditions as CommonMark emphasis.
node.js, browser:
npm install markdown-it-ins --save
bower install markdown-it-ins --save
var md = require('markdown-it')()
.use(require('markdown-it-ins'));
md.render('++inserted++') // => '<p><ins>inserted</ins></p>'
Differences in browser. If you load script directly into the page, without
package system, module will add itself globally as window.markdownitIns
.
FAQs
tag for markdown-it markdown parser.
The npm package markdown-it-ins receives a total of 149,040 weekly downloads. As such, markdown-it-ins popularity was classified as popular.
We found that markdown-it-ins 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.
Product
Ensure open-source compliance with Socket’s License Enforcement Beta. Set up your License Policy and secure your software!
Product
We're launching a new set of license analysis and compliance features for analyzing, managing, and complying with licenses across a range of supported languages and ecosystems.
Product
We're excited to introduce Socket Optimize, a powerful CLI command to secure open source dependencies with tested, optimized package overrides.