Skip to content

Commit

Permalink
Jira reader: use span with class underline for inserted text
Browse files Browse the repository at this point in the history
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
  • Loading branch information
tarleb committed Mar 31, 2020
1 parent ff9be6b commit 7df0710
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/Text/Pandoc/Readers/Jira.hs
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ jiraToPandocInlines = \case

fromStyle = \case
Jira.Emphasis -> emph
Jira.Insert -> spanWith ("", ["inserted"], [])
Jira.Insert -> spanWith ("", ["underline"], [])
Jira.Strikeout -> strikeout
Jira.Strong -> strong
Jira.Subscript -> subscript
Expand Down
4 changes: 4 additions & 0 deletions test/Tests/Readers/Jira.hs
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,10 @@ tests =
let attr = ("", [], [("align", "right"), ("vspace", "4")])
in para $ imageWith attr "image.gif" "Hello" mempty

, "inserted text" =:
"+the new version+" =?>
para (spanWith ("", ["underline"], []) "the new version")

, "HTML entity" =:
"me & you" =?> para "me & you"

Expand Down

0 comments on commit 7df0710

Please sign in to comment.