diff options
Diffstat (limited to 'biblio/citation-style-language/citeproc-node-text.lua')
-rw-r--r-- | biblio/citation-style-language/citeproc-node-text.lua | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/biblio/citation-style-language/citeproc-node-text.lua b/biblio/citation-style-language/citeproc-node-text.lua index c7275b39be..b5c9ea61a6 100644 --- a/biblio/citation-style-language/citeproc-node-text.lua +++ b/biblio/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 |