Security News
RubyGems.org Adds New Maintainer Role
RubyGems.org has added a new "maintainer" role that allows for publishing new versions of gems. This new permission type is aimed at improving security for gem owners and the service overall.
markdown-it-ruby
Advanced tools
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.
npm install markdown-it-ruby --save
import MarkdownIt from 'markdown-it';
import rubyPlugin from 'markdown-it-ruby';
const md = new MarkdownIt().use(rubyPlugin);
md.render('{ruby base|ruby text}'); // => '<p><ruby>ruby base<rt>ruby text</rt></ruby></p>'
const MarkdownIt = require('markdown-it');
const rubyPlugin = require('markdown-it-ruby');
const md = new MarkdownIt().use(rubyPlugin);
md.render('{ruby base|ruby text}'); // => '<p><ruby>ruby base<rt>ruby text</rt></ruby></p>'
You can pass options to the plugin:
const md = new MarkdownIt().use(rubyPlugin, {
rp: ['(', ')'] // Add parentheses around ruby text
});
// Output: <ruby>漢字<rp>(</rp><rt>かんじ</rt><rp>)</rp></ruby>
md.render('{漢字|かんじ}');
Option | Type | Default | Description |
---|---|---|---|
rp | [string, string] | ['', ''] | Array of opening and closing parentheses to wrap around ruby text. When both values are empty strings, no rp elements will be output. |
FAQs
Ruby annotation plugin for markdown-it parser.
The npm package markdown-it-ruby receives a total of 0 weekly downloads. As such, markdown-it-ruby popularity was classified as not popular.
We found that markdown-it-ruby demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
RubyGems.org has added a new "maintainer" role that allows for publishing new versions of gems. This new permission type is aimed at improving security for gem owners and the service overall.
Security News
Node.js will be enforcing stricter semver-major PR policies a month before major releases to enhance stability and ensure reliable release candidates.
Security News
Research
Socket's threat research team has detected five malicious npm packages targeting Roblox developers, deploying malware to steal credentials and personal data.