notes: allow <ruby> tags for marking up furigana.
This commit is contained in:
@@ -34,6 +34,12 @@ div#note-container {
|
||||
font-size: 0.8em;
|
||||
}
|
||||
|
||||
ruby {
|
||||
rt {
|
||||
font-size: 0.8em;
|
||||
}
|
||||
}
|
||||
|
||||
ul {
|
||||
margin-left: 1em;
|
||||
margin-bottom: 1em;
|
||||
|
||||
@@ -363,7 +363,7 @@ class DText
|
||||
|
||||
Sanitize.clean(
|
||||
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 => {
|
||||
"a" => %w(href title style),
|
||||
"span" => %w(class style),
|
||||
|
||||
Reference in New Issue
Block a user