简体   繁体   English

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

[英]Customized hyperlinks for markdown-bibtex to html conversion using Pandoc

I am using the following style to have my bibilography imported from a bibtex file in markdown and from there to html/pdf: 我正在使用以下样式将我的书目从markdown中的bibtex文件导入,并从那里导入html / pdf:

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

 # Biliography

After that I run: 之后,我运行:

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

However currently the urls of bib entries after conversion to html appear as: 但是,当前转换为html后的bib条目的网址显示为:

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

I could not figure out how to change this to something like: 我不知道如何将其更改为类似:

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

I could manipulate prefix and suffic by touching the csl file but could not change the hyperlink name. 我可以通过触摸csl文件来处理前缀和后缀,但是不能更改超链接名称。 Any help is appreciated. 任何帮助表示赞赏。

I'm afraid the answer to this is that it's not possible. 恐怕答案是不可能的。 CSL just doesn't allow you to set a hyperlink on a string and since CSL is what pandoc relies on for bibliographies, there's no way to do this. CSL只是不允许您在字符串上设置超链接,并且由于CSL是pandoc依赖于书目的依据,因此无法做到这一点。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM