Seeking IEEE-with-URL without actual HTML Anchor HREFS

See https://github.com/jgm/pandoc-citeproc/issues/155

Please advise.

I am using pandoc and its citeproc filter to produce HTML that is fed to Prince XML for generation of formatted PDF from initial Markdown text. The workflow works quite well. Now, I have a conference that requires that the PDF be free of HREF links.

I am trying to figure out where in my workflow I can tell pandoc (or introduce a filter) such that it does not wrap the URLs from Zotero entries in "a href" spans. I am using the ieee-with-url.csl.

Is there a command-line flag to tell pandoc to not auto-wrap URLs when it emits its HTML output? If not, is there convenient XSLT that I can tweak in the CSL file to not do that wrapping? If not, is there an existing additional pandoc filter that strips out this "a href" wrappers?

The complete workflow is described in https://www.academia.edu/14436493/Stay_Focused_on_Content_with_an_Automation_Workflow_for_Professional_Publication complete with a bibliographic references section that illustrates the unwanted href links. (Note that the href links aren’t always unwanted, I just have a particular submission process that denies papers with them. I need something optional.)
  • If I properly recall my XSLT programming, this is the line from ieee-with-url.csl that emits the text of the URL variable (whose value is set from the Zotero record):

    <text variable="URL"/>

    There is nothing here that says that this should also be wrapped in an HTML anchor tag as that tag's href attribute value.

    Therefore, what part of the processing is trying to be helpful and is doing that wrapping? How do I tell that step, "uh, no thanks. I like my URLs as plain text."?
  • Yeah, that's not a Zotero (or CSL) question, so we can't really help you with that here. (The only step where Zotero is involved is exporting the item, and at that point the url is definitely still "unwrapped.")

    I'm not sure what the best support channels for pandoc are -- but it sounds like the mailing list might be good: http://pandoc.org/lists.html
Sign In or Register to comment.