|
|
há 6 meses atrás | |
|---|---|---|
| .. | ||
| test | há 6 meses atrás | |
| .eslintrc | há 6 meses atrás | |
| .npmignore | há 6 meses atrás | |
| LICENSE | há 6 meses atrás | |
| README.md | há 6 meses atrás | |
| index.js | há 6 meses atrás | |
| package.json | há 6 meses atrás | |
Ruby annotations (
<ruby>) tag plugin for markdown-it markdown parser.
{ruby base|ruby text} => <ruby>ruby base<rt>ruby text</rt></ruby>
Markup is based on DenDenMarkdown definition.
node.js:
npm install markdown-it-ruby --save
var md = require('markdown-it')()
.use(require('markdown-it-ruby'));
md.render('{ruby base|rubytext}') // => '<p><ruby>ruby base<rt>ruby text</rt></ruby></p>'