0.0.15 • Published 7 years ago

rehype-abbr v0.0.15

Weekly downloads
6
License
MIT
Repository
github
Last release
7 years ago

rehype-abbr Build Status Coverage Status

This plugin parses custom Markdown syntax to produce HTML abbreviations.

Syntax

An abbreviation works the same as footnotes:

This plugin works on HAST, an HTML AST
implemented by [rehype](https://github.com/wooorm/rehype)

*[HAST]: Hypertext Abstract Syntax Tree format.
*[AST]: Abstract syntax tree

produces:

<p>This plugin works on <abbr title="Hypertext Abstract Syntax Tree format.">HAST</abbr>, an HTML <abbr title="Abstract syntax tree">AST</abbr>
implemented by <a href="https://github.com/wooorm/rehype">rehype</a></p>

Installation

npm:

npm install rehype-abbr

Usage

Dependencies:

const unified = require('unified')
const remarkParse = require('remark-parse')
const stringify = require('rehype-stringify')
const remark2rehype = require('remark-rehype')

const rehypeAbbr = require('rehype-abbr')

Usage:

unified()
  .use(remarkParse)
  .use(remark2rehype)
  .use(rehypeAbbr)
  .use(stringify)

License

MIT © Zeste de Savoir

0.0.15

7 years ago

0.0.14

7 years ago

0.0.13

7 years ago

0.0.12

7 years ago

0.0.11

7 years ago

0.0.10

7 years ago

0.0.9

7 years ago

0.0.8

7 years ago

0.0.7

7 years ago