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 /data/pandoc.lua | |
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 'data/pandoc.lua')
-rw-r--r-- | data/pandoc.lua | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/data/pandoc.lua b/data/pandoc.lua index e9b6209c3..340c2f46c 100644 --- a/data/pandoc.lua +++ b/data/pandoc.lua @@ -829,13 +829,23 @@ M.Subscript = M.Inline:create_constructor( --- Creates a Superscript inline element -- @function Superscript -- @tparam {Inline,..} content inline content --- @treturn Inline strong element +-- @treturn Inline superscript element M.Superscript = M.Inline:create_constructor( "Superscript", function(content) return {c = ensureInlineList(content)} end, "content" ) +--- Creates an Underline inline element +-- @function Underline +-- @tparam {Inline,..} content inline content +-- @treturn Inline underline element +M.Underline = M.Inline:create_constructor( + "Underline", + function(content) return {c = ensureInlineList(content)} end, + "content" +) + ------------------------------------------------------------------------ -- Element components |