![Maven Central Adds Sigstore Signature Validation](https://cdn.sanity.io/images/cgdhsj6q/production/7da3bc8a946cfb5df15d7fcf49767faedc72b483-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Maven Central Adds Sigstore Signature Validation
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.
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 75,674 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
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.
Security News
CISOs are racing to adopt AI for cybersecurity, but hurdles in budgets and governance may leave some falling behind in the fight against cyber threats.
Research
Security News
Socket researchers uncovered a backdoored typosquat of BoltDB in the Go ecosystem, exploiting Go Module Proxy caching to persist undetected for years.