aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn MacFarlane <[email protected]>2022-09-27 09:04:36 -0700
committerJohn MacFarlane <[email protected]>2022-09-27 09:04:36 -0700
commite92f1a5ecf374473447fdac7e5961845346df4ad (patch)
tree05f9e6ba4864f0c71b4b4c850d9b6c28e7654ee3
parent5849317bd3cdc8e5f7fd834945aa947b85c320ab (diff)
Allow `url` field in bibtext (input and output).
This field is not officially supported, but many styles can handle it (<https://www.bibtex.com/f/url-field/>), and others will ignore it. Closes #8287.
-rw-r--r--src/Text/Pandoc/Citeproc/BibTeX.hs2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/Text/Pandoc/Citeproc/BibTeX.hs b/src/Text/Pandoc/Citeproc/BibTeX.hs
index 548190439..72f2362e6 100644
--- a/src/Text/Pandoc/Citeproc/BibTeX.hs
+++ b/src/Text/Pandoc/Citeproc/BibTeX.hs
@@ -179,6 +179,8 @@ writeBibtexString opts variant mblang ref =
, "type"
, "note"
, "annote"
+ , "url" -- not officially supported, but supported by
+ -- some styles (#8287)
]
valToInlines (TextVal t) = B.text t