git.iko.soy/typeable/pandoc
on master help sign in
Use smallcaps class for SmallCaps in CommonMark writer.

See #1592.

commitb64211a547abf8e454b01e0b79cd18d689f1f3bc authorJohn MacFarlane <jgm@berkeley.edu> dateSat 4 Mar 2017, 14:43 (10 years ago) parent8f20d7d
1 file changed+1−1
src/Text/Pandoc/Writers/CommonMark.hs+1−1
src/Text/Pandoc/Writers/CommonMark.hs+1−1
@@ -162,7 +162,7 @@ inlineToNodes (Subscript xs) =
162162 ((node (HTML_INLINE (T.pack "<sub>")) [] : inlinesToNodes xs ++
163163 [node (HTML_INLINE (T.pack "</sub>")) []]) ++ )
164164inlineToNodes (SmallCaps xs) =
165− ((node (HTML_INLINE (T.pack "<span style=\"font-variant:small-caps;\">")) []
165+ ((node (HTML_INLINE (T.pack "<span class=\"smallcaps\">")) []
166166 : inlinesToNodes xs ++
167167 [node (HTML_INLINE (T.pack "</span>")) []]) ++ )
168168inlineToNodes (Link _ ils (url,tit)) =