summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/scripts/citation-style-language/citeproc-node-text.lua
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2022-03-21 20:30:02 +0000
committerKarl Berry <karl@freefriends.org>2022-03-21 20:30:02 +0000
commit82bc16ce44bc3251fe77fc8457194622bccb5614 (patch)
tree8f8144629fe0fad5dbc603b895df6eb64d616ba5 /Master/texmf-dist/scripts/citation-style-language/citeproc-node-text.lua
parenta24bbdfb79d581d3980dff6146a9763c7a78f766 (diff)
citation-style-language (21mar22)
git-svn-id: svn://tug.org/texlive/trunk@62862 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/scripts/citation-style-language/citeproc-node-text.lua')
-rw-r--r--Master/texmf-dist/scripts/citation-style-language/citeproc-node-text.lua10
1 files changed, 10 insertions, 0 deletions
diff --git a/Master/texmf-dist/scripts/citation-style-language/citeproc-node-text.lua b/Master/texmf-dist/scripts/citation-style-language/citeproc-node-text.lua
index 55dd13e295c..e26a4804387 100644
--- a/Master/texmf-dist/scripts/citation-style-language/citeproc-node-text.lua
+++ b/Master/texmf-dist/scripts/citation-style-language/citeproc-node-text.lua
@@ -1,3 +1,9 @@
+--
+-- Copyright (c) 2021-2022 Zeping Lee
+-- Released under the MIT license.
+-- Repository: https://github.com/zepinglee/citeproc-lua
+--
+
local text = {}
local element = require("citeproc-element")
@@ -63,6 +69,10 @@ function Text:render (item, context)
res = richtext.new(res)
end
+ if res and variable_name == "URL" then
+ res:add_format("URL", "true")
+ end
+
res = self:strip_periods(res, context)
res = self:case(res, context)
res = self:format(res, context)