Skip to content

Commit 2ebc108

Browse files
authored
Add support for ruby elements
Closes GH-47.
1 parent b859a12 commit 2ebc108

File tree

4 files changed

+28
-0
lines changed

4 files changed

+28
-0
lines changed

lib/handlers/index.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,12 @@ exports.nobr = all
9090
exports.noscript = all
9191
exports.output = all
9292
exports.progress = all
93+
exports.rb = all
94+
exports.rbc = all
95+
exports.rp = all
96+
exports.rt = all
97+
exports.rtc = all
98+
exports.ruby = all
9399
exports.slot = all
94100
exports.small = all
95101
exports.span = all
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
<p>The <code>&ltruby></code>, <code>&ltrt></code>, and <code>&ltrp></code> elements:</p>
2+
<p>
3+
<ruby><rp></rp><rt>かん</rt><rp></rp><rp></rp><rt></rt><rp></rp></ruby>
4+
</p>
5+
<p>The legacy <code>&lt;rbc></code>, <code>&lt;rtc></code> and <code>&lt;rb></code> elements:</p>
6+
<p>
7+
<ruby>
8+
<rbc><rb>10</rb><rb>31</rb><rb>2002</rb></rbc>
9+
<rtc><rt>Month</rt><rt>Day</rt><rt>Year</rt></rtc>
10+
<rtc><rt rbspan="3">Expiration Date</rt></rtc>
11+
</ruby>
12+
</p>
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"fragment": true
3+
}
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
The `<ruby>`, `<rt>`, and `<rp>` elements:
2+
3+
漢(かん)字(じ)
4+
5+
The legacy `<rbc>`, `<rtc>` and `<rb>` elements:
6+
7+
10312002MonthDayYearExpiration Date

0 commit comments

Comments
 (0)