add _extensions
This commit is contained in:
@@ -0,0 +1,14 @@
|
||||
--- Remove hyperlinks from DOIs while preserving the DOI text
|
||||
--- Useful for styles without DOIs but you don't want to edit the bibliography file
|
||||
|
||||
--- Copyright: © 2024–Present Tom Ben
|
||||
--- License: MIT License
|
||||
|
||||
function Link(el)
|
||||
-- Check if this is a DOI link
|
||||
if el.target:match("^https?://doi%.org") then
|
||||
-- Return just the link text content without the link wrapper
|
||||
return el.content
|
||||
end
|
||||
return el
|
||||
end
|
||||
Reference in New Issue
Block a user