git.iko.soy/typeable/pandoc
on master help sign in
Jira reader: use span with class `underline` for inserted text

Jira text which is marked as `+inserted+` is converted into pandoc's default representation for underlined text: a span with class `underline`. Previously, the span was marked with the non-standard class `inserted`. Closes: #6237

commit7df0710094b521c52f7e312751fe90890768f76c authorAlbert Krewinkel <albert@zeitkraut.de> dateTue 31 Mar 2020, 10:00 (7 years ago) parentff9be6b
2 files changed+5−1
src/Text/Pandoc/Readers/Jira.hs+1−1 test/Tests/Readers/Jira.hs+4
src/Text/Pandoc/Readers/Jira.hs+1−1
@@ -140,7 +140,7 @@ jiraToPandocInlines = \case
140140
141141 fromStyle = \case
142142 Jira.Emphasis -> emph
143− Jira.Insert -> spanWith ("", ["inserted"], [])
143+ Jira.Insert -> spanWith ("", ["underline"], [])
144144 Jira.Strikeout -> strikeout
145145 Jira.Strong -> strong
146146 Jira.Subscript -> subscript
test/Tests/Readers/Jira.hs+4
@@ -126,6 +126,10 @@ tests =
126126 let attr = ("", [], [("align", "right"), ("vspace", "4")])
127127 in para $ imageWith attr "image.gif" "Hello" mempty
128128
129+ , "inserted text" =:
130+ "+the new version+" =?>
131+ para (spanWith ("", ["underline"], []) "the new version")
132+
129133 , "HTML entity" =:
130134 "me &amp; you" =?> para "me & you"
131135