rubyAnnotation()
`{漢字|かんじ}` sözdizimiyle ruby/furigana ek açıklamalarını destekler.
import { rubyAnnotation } from "@unifast/node";İmza
function rubyAnnotation(): UnifastPluginParametreler
Yok.
Kullanım
import { compile, rubyAnnotation } from "@unifast/node";
const md = `
{漢字|かんじ}の読み方を学びましょう。
`;
const result = compile(md, { plugins: [rubyAnnotation()] });
// {漢字|かんじ}, <ruby>漢字<rp>(</rp><rt>かんじ</rt><rp>)</rp></ruby>'ye dönüşürÖrnekler
Ruby ek açıklamaları (furigana)
Bir cümlede birden fazla ek açıklama
import { compile, rubyAnnotation } from "@unifast/node";
const md = `
{東京|とうきょう}は{日本|にほん}の{首都|しゅと}です。
`;
const result = compile(md, { plugins: [rubyAnnotation()] });Karışık içerik
import { compile, rubyAnnotation } from "@unifast/node";
const md = `
# {日本語|にほんご}ガイド
{漢字|かんじ}には**たくさん**の{読|よ}み{方|かた}があります。
- {音読|おんよ}み — Chinese-derived reading
- {訓読|くんよ}み — Native Japanese reading
`;
const result = compile(md, { plugins: [rubyAnnotation()] });