|
vor 1 Woche | |
---|---|---|
.. | ||
test | vor 1 Woche | |
.eslintrc | vor 1 Woche | |
.npmignore | vor 1 Woche | |
LICENSE | vor 1 Woche | |
README.md | vor 1 Woche | |
index.js | vor 1 Woche | |
package.json | vor 1 Woche |
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>'