diff options
author | Karl Berry <karl@freefriends.org> | 2022-03-21 20:31:00 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2022-03-21 20:31:00 +0000 |
commit | 52f56de7f55c46a0b7828643dcebd15a9434f785 (patch) | |
tree | f8e006e7c2d622ab79ea1ca11ecc2872989ece84 /Master/texmf-dist/scripts/citation-style-language/citeproc-node-text.lua | |
parent | 5e085e8a7caf39de08814a984c375e211963bc2a (diff) |
citation-style-language (21mar22) (branch)
git-svn-id: svn://tug.org/texlive/branches/branch2021.final@62863 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.lua | 10 |
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) |