Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

markdown-it-sub

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

markdown-it-sub

<sub> tag for markdown-it markdown parser.

  • 1.0.0
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created

What is markdown-it-sub?

The markdown-it-sub package is a plugin for the markdown-it Markdown parser that adds support for subscript text. This allows users to include subscript text in their Markdown documents, which is useful for scientific notation, chemical formulas, and other contexts where subscript text is needed.

What are markdown-it-sub's main functionalities?

Subscript Text

This feature allows you to render subscript text in Markdown. By using the tilde (~) syntax, you can convert text to subscript. In the example, 'H~2~O' is converted to 'H<sub>2</sub>O'.

const md = require('markdown-it')();
const sub = require('markdown-it-sub');
md.use(sub);

const result = md.render('H~2~O');
console.log(result); // Outputs: <p>H<sub>2</sub>O</p>

Other packages similar to markdown-it-sub

Keywords

FAQs

Package last updated on 12 Mar 2015

Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc