Richtypo plugin
PostHTMLApply typography rules to text into HTML node
Before:
There are 1000 "rules" to enrich your text
After:
There are 1000 «rules» to enrich your text
Install
npm i posthtml posthtml-richtypo
Usage
const fs = ;const posthtml = ;const richtypoPlugin = ;constquotessectionSignsshortWords= ;;
Options
{string} attribute
to change text into
Default: 'data-richtypo'
{array} rules
to apply typography
Default: richtypo-rules-en
Contributing
See PostHTML Guidelines and contribution guide.