notes: allow <ruby> tags for marking up furigana.
This commit is contained in:
@@ -34,6 +34,12 @@ div#note-container {
|
|||||||
font-size: 0.8em;
|
font-size: 0.8em;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
ruby {
|
||||||
|
rt {
|
||||||
|
font-size: 0.8em;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
ul {
|
ul {
|
||||||
margin-left: 1em;
|
margin-left: 1em;
|
||||||
margin-bottom: 1em;
|
margin-bottom: 1em;
|
||||||
|
|||||||
@@ -363,7 +363,7 @@ class DText
|
|||||||
|
|
||||||
Sanitize.clean(
|
Sanitize.clean(
|
||||||
text,
|
text,
|
||||||
:elements => %w(code center tn h1 h2 h3 h4 h5 h6 a span div blockquote br p ul li ol em strong small big b i font u s pre),
|
:elements => %w(code center tn h1 h2 h3 h4 h5 h6 a span div blockquote br p ul li ol em strong small big b i font u s pre ruby rb rt rp),
|
||||||
:attributes => {
|
:attributes => {
|
||||||
"a" => %w(href title style),
|
"a" => %w(href title style),
|
||||||
"span" => %w(class style),
|
"span" => %w(class style),
|
||||||
|
|||||||
Reference in New Issue
Block a user