Socket
Socket
Sign inDemoInstall

markdown-it-abbr

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

markdown-it-abbr

tag for markdown-it markdown parser.


Version published
Weekly downloads
173K
decreased by-5.42%
Maintainers
1
Weekly downloads
 
Created

What is markdown-it-abbr?

The markdown-it-abbr package is a plugin for the markdown-it Markdown parser that allows you to define and use abbreviations in your Markdown documents. It provides a simple syntax for defining abbreviations and their expansions, which can then be used throughout your document.

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

Define Abbreviations

This feature allows you to define abbreviations and their expansions using a simple syntax. In the example, 'HTML' is defined as 'Hyper Text Markup Language' and 'W3C' is defined as 'World Wide Web Consortium'.

const md = require('markdown-it')().use(require('markdown-it-abbr'));
const result = md.render('The HTML specification is maintained by the W3C.

*[HTML]: Hyper Text Markup Language
*[W3C]: World Wide Web Consortium');
console.log(result);

Use Abbreviations

Once abbreviations are defined, you can use them throughout your document. The plugin will automatically replace the abbreviations with their expansions when rendering the Markdown to HTML.

const md = require('markdown-it')().use(require('markdown-it-abbr'));
const result = md.render('The HTML specification is maintained by the W3C.');
console.log(result);

Other packages similar to markdown-it-abbr

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