aboutsummaryrefslogtreecommitdiff
path: root/data/pandoc.lua
diff options
context:
space:
mode:
authorVaibhav Sagar <vaibhavsagar@gmail.com>2020-04-28 22:53:06 +0800
committerGitHub <noreply@github.com>2020-04-28 07:53:06 -0700
commit9c2b659eeb196145f62d8eae0072c279a7c2d751 (patch)
treef3c97feb0f1d063e2a7c65904c9fbe1591104a05 /data/pandoc.lua
parent8d09a92d979126a53ec72ec73294ad04f811e9a7 (diff)
downloadpandoc-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.lua12
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