diff options
author | Vaibhav Sagar <vaibhavsagar@gmail.com> | 2020-04-28 22:53:06 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-04-28 07:53:06 -0700 |
commit | 9c2b659eeb196145f62d8eae0072c279a7c2d751 (patch) | |
tree | f3c97feb0f1d063e2a7c65904c9fbe1591104a05 /src/Text/Pandoc/Shared.hs | |
parent | 8d09a92d979126a53ec72ec73294ad04f811e9a7 (diff) | |
download | pandoc-9c2b659eeb196145f62d8eae0072c279a7c2d751.tar.gz |
Support new Underline element in readers and writers (#6277)
Deprecate `underlineSpan` in Shared in favor of `Text.Pandoc.Builder.underline`.
Diffstat (limited to 'src/Text/Pandoc/Shared.hs')
-rw-r--r-- | src/Text/Pandoc/Shared.hs | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/Text/Pandoc/Shared.hs b/src/Text/Pandoc/Shared.hs index 1593106de..dc1adb42b 100644 --- a/src/Text/Pandoc/Shared.hs +++ b/src/Text/Pandoc/Shared.hs @@ -750,11 +750,12 @@ eastAsianLineBreakFilter = bottomUp go go xs = xs --- | Builder for underline. +{-# DEPRECATED underlineSpan "Use Text.Pandoc.Builder.underline instead" #-} +-- | Builder for underline (deprecated). -- This probably belongs in Builder.hs in pandoc-types. -- Will be replaced once Underline is an element. underlineSpan :: Inlines -> Inlines -underlineSpan = B.spanWith ("", ["underline"], []) +underlineSpan = B.underline -- | Set of HTML elements that are represented as Span with a class equal as -- the element tag itself. |