使用Pandoc自定义markdown-bibtex到html转换的超链接

问题描述 投票:0回答:1

我正在使用以下样式将我的bibilography从mar​​kdown中的bibtex文件导入并从那里导入到html / pdf:

 ---
 bibliography: test.bib
 nocite: '@*'
 ...

 # Biliography

之后我运行:

pandoc test.md -o test.html --bibligraphy test.bib --csl=test.csl

但是目前转换为html后的bib条目的URL显示为:

 <a href="www.test.com/test.pdf">www.test.com/test.pdf</a>

我无法弄清楚如何将其更改为:

 <a href="www.test.com/test.pdf">test file!</a>

我可以通过触摸csl文件来操作前缀和后缀,但无法更改超链接名称。任何帮助表示赞赏。

html pandoc bibtex biblatex csl
1个回答
0
投票

我担心这个问题的答案是不可能的。 CSL只是不允许你在字符串上设置超链接,因为CSL是pandoc所依赖的参考书目,所以没有办法做到这一点。

© www.soinside.com 2019 - 2024. All rights reserved.