Skip to content

Commit

Permalink
Add support for ruby elements
Browse files Browse the repository at this point in the history
Closes GH-47.
  • Loading branch information
wooorm committed May 24, 2019
1 parent b859a12 commit 2ebc108
Show file tree
Hide file tree
Showing 4 changed files with 28 additions and 0 deletions.
6 changes: 6 additions & 0 deletions lib/handlers/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,12 @@ exports.nobr = all
exports.noscript = all
exports.output = all
exports.progress = all
exports.rb = all
exports.rbc = all
exports.rp = all
exports.rt = all
exports.rtc = all
exports.ruby = all
exports.slot = all
exports.small = all
exports.span = all
Expand Down
12 changes: 12 additions & 0 deletions test/fixtures/ruby-rt-rp-rbc-rtc-rb/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<p>The <code>&ltruby></code>, <code>&ltrt></code>, and <code>&ltrp></code> elements:</p>
<p>
<ruby><rp></rp><rt>かん</rt><rp></rp><rp></rp><rt></rt><rp></rp></ruby>
</p>
<p>The legacy <code>&lt;rbc></code>, <code>&lt;rtc></code> and <code>&lt;rb></code> elements:</p>
<p>
<ruby>
<rbc><rb>10</rb><rb>31</rb><rb>2002</rb></rbc>
<rtc><rt>Month</rt><rt>Day</rt><rt>Year</rt></rtc>
<rtc><rt rbspan="3">Expiration Date</rt></rtc>
</ruby>
</p>
3 changes: 3 additions & 0 deletions test/fixtures/ruby-rt-rp-rbc-rtc-rb/index.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"fragment": true
}
7 changes: 7 additions & 0 deletions test/fixtures/ruby-rt-rp-rbc-rtc-rb/index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
The `<ruby>`, `<rt>`, and `<rp>` elements:

漢(かん)字(じ)

The legacy `<rbc>`, `<rtc>` and `<rb>` elements:

10312002MonthDayYearExpiration Date

0 comments on commit 2ebc108

Please sign in to comment.