summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/scripts/citation-style-language/citeproc-node-text.lua
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2023-04-03 21:32:12 +0000
committerKarl Berry <karl@freefriends.org>2023-04-03 21:32:12 +0000
commitf7e460629cd4ad5b5633111ebcfe71c4d9dfa545 (patch)
tree9d18c6da99ca46eb92eb8019b2880c7c2d33e990 /Master/texmf-dist/scripts/citation-style-language/citeproc-node-text.lua
parente7038d590db60ddbdbb89f18f8251bc096355c09 (diff)
citation-style-language (3apr23)
git-svn-id: svn://tug.org/texlive/trunk@66749 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.lua6
1 files changed, 4 insertions, 2 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 c7275b39beb..b5c9ea61a61 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,5 +1,5 @@
--
--- Copyright (c) 2021-2022 Zeping Lee
+-- Copyright (c) 2021-2023 Zeping Lee
-- Released under the MIT license.
-- Repository: https://github.com/zepinglee/citeproc-lua
--
@@ -95,7 +95,7 @@ function Text:build_variable_ir(engine, state, context)
-- end
-- if engine.opt.wrap_url_and_doi and (variable == "URL" or variable == "DOI" or
-- variable == "PMID" or variable == "PMID") then
- if variable == "URL" or variable == "DOI" or variable == "PMID" or variable == "PMID" then
+ if variable == "URL" or variable == "DOI" or variable == "PMID" or variable == "PMCID" then
inlines = self:render_linked(engine, state, context, variable, text)
else
inlines = self:render_text_inlines(text, context)
@@ -170,6 +170,7 @@ end
function Text:build_macro_ir(engine, state, context)
local macro = context:get_macro(self.macro)
+ -- util.debug(string.format('<macro name="%s">', self.macro))
state:push_macro(self.macro)
local ir = macro:build_ir(engine, state, context)
state:pop_macro(self.macro)
@@ -181,6 +182,7 @@ function Text:build_macro_ir(engine, state, context)
ir.quotes = context:get_localized_quotes()
end
end
+ -- util.debug(ir)
return ir
end