Detalhes do pacote

markdown-it-abbr

markdown-it1.1mMIT2.0.0

tag for markdown-it markdown parser.

markdown-it-plugin, markdown-it, markdown, abbreviation

readme (leia-me)

markdown-it-abbr

CI NPM version Coverage Status

Abbreviation (<abbr>) tag plugin for markdown-it markdown parser.

v1.+ requires markdown-it v4.+, see changelog.

Markup is based on php markdown extra definition, but without multiline support.

Markdown:

*[HTML]: Hyper Text Markup Language
*[W3C]:  World Wide Web Consortium
The HTML specification
is maintained by the W3C.

HTML:

<p>The <abbr title="Hyper Text Markup Language">HTML</abbr> specification
is maintained by the <abbr title="World Wide Web Consortium">W3C</abbr>.</p>

Install

node.js, browser:

npm install markdown-it-abbr --save
bower install markdown-it-abbr --save

Use

var md = require('markdown-it')()
            .use(require('markdown-it-abbr'));

md.render(/*...*/) // see example above

Differences in browser. If you load script directly into the page, without package system, module will add itself globally as window.markdownitAbbr.

License

MIT

changelog (log de mudanças)

2.0.0 / 2023-12-03

  • Rewrite to ESM.
  • Remove dist/ from repo (build on package publish).

1.0.4 / 2016-08-31

  • Fixed infinite loop caused by empty abbreviations like *[]: foo. Empty abbreviations are no longer parsed.

1.0.3 / 2016-01-05

  • Fixed uc.micro use.

1.0.2 / 2015-12-31

  • maintenance, bower files rebuild

1.0.1 / 2015-12-31

  • Resolved collision with linkify-it.
  • Extended list of start/stop punctuation characters to unicode ones.

1.0.0 / 2015-03-12

  • Markdown-it 4.0.0 support. Use previous version for 2.x-3.x.

0.1.0 / 2015-01-04

  • First release.