Security News
Research
Data Theft Repackaged: A Case Study in Malicious Wrapper Packages on npm
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
markdown-it-sup
Advanced tools
The markdown-it-sup package is a plugin for the markdown-it Markdown parser that adds support for superscript text. This allows users to easily include superscript text in their Markdown documents.
Superscript Text
This feature allows you to render superscript text in Markdown. In the example, '19^th^ century' will be converted to '19<sup>th</sup> century' in HTML.
const md = require('markdown-it')();
const sup = require('markdown-it-sup');
md.use(sup);
const result = md.render('This is a superscript text example: 19^th^ century.');
console.log(result);
The markdown-it-sub package is a plugin for the markdown-it Markdown parser that adds support for subscript text. While markdown-it-sup handles superscript text, markdown-it-sub focuses on subscript text, allowing users to include subscript text in their Markdown documents.
The markdown-it-attrs package is a plugin for the markdown-it Markdown parser that allows users to add attributes to Markdown elements. This is more general-purpose compared to markdown-it-sup, which is specifically for superscript text. With markdown-it-attrs, you can add classes, IDs, and other attributes to various Markdown elements.
The markdown-it-footnote package is a plugin for the markdown-it Markdown parser that adds support for footnotes. While markdown-it-sup is focused on superscript text, markdown-it-footnote allows users to include footnotes in their Markdown documents, providing a way to add additional information or citations.
Superscript (
<sup>
) tag plugin for markdown-it markdown parser.
v1.+ requires markdown-it
v4.+, see changelog.
29^th^
=> 29<sup>th</sup>
Markup is based on pandoc definition. But nested markup is currently not supported.
node.js, browser:
npm install markdown-it-sup --save
bower install markdown-it-sup --save
var md = require('markdown-it')()
.use(require('markdown-it-sup'));
md.render('29^th^') // => '<p>29<sup>th</sup></p>'
Differences in browser. If you load script directly into the page, without
package system, module will add itself globally as window.markdownitSup
.
FAQs
<sup> tag for markdown-it markdown parser.
The npm package markdown-it-sup receives a total of 202,520 weekly downloads. As such, markdown-it-sup popularity was classified as popular.
We found that markdown-it-sup 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
Research
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
Research
Security News
Attackers used a malicious npm package typosquatting a popular ESLint plugin to steal sensitive data, execute commands, and exploit developer systems.
Security News
The Ultralytics' PyPI Package was compromised four times in one weekend through GitHub Actions cache poisoning and failure to rotate previously compromised API tokens.