It should make the problem go away if you remove the spaces and newlines around the URL. (%20 encodes a space and %0A a newline)

But this does seem like a bug (I guess in the LaTeX reader's treatment of \url) so it should be reported on our bug tracker.

On Oct 31, 2023, at 12:21 PM, t t <tobias.tschiedl-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:

Hi,
I'm getting garbled URLs in the pdf output for a bibliography. I'm not sure what I am doing wrong.
By garbled, I mean this here, copied from the pdf (note all the happy %20s):

Pitt, David. 2022. “Mental Representation.” In The Stanford Encyclopedia of Philosophy, edited by Edward N. Zalta and Uri Nodelman, Fall 2022. %0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20% 20%20%20%20https://plato.stanford.edu/archives/fall2022/entries/mentalrepresentation/%0A%20%20%20%20%20%20%20%20%20%20%20%20% 20%20%20%20%20%20%20%20; Metaphysics Research Lab, Stanford University.  

Got this through calling `pandoc mwe.bib -s --citeproc -o mwe.pdf` like suggested in a manual.
(I had similar results calling it as --bibliography, with the main input a .tex file that included \usepackage{url}, so that does not seem to be the problem)
The mwe.bib file that produced this is this:
```
@incollection{sep-mental-representation,
    author = {Pitt, David},
    booktitle = {The {Stanford} Encyclopedia of Philosophy},
    edition = {{F}all 2022},
    editor = {Edward N. Zalta and Uri Nodelman},
    howpublished = {\url{
                    https://plato.stanford.edu/archives/fall2022/entries/mental-representation/
                    }},
    publisher = {Metaphysics Research Lab, Stanford University},
    title = {{Mental Representation}},
    year = {2022},
}
```

 Any ideas what I might have overlooked here? 
Thanks,
Best,
Tobias


--
You received this message because you are subscribed to the Google Groups "pandoc-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/b82b1b49-4c9d-4534-9b41-831bab0917c6n%40googlegroups.com.

--
You received this message because you are subscribed to the Google Groups "pandoc-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/DF1D2254-193D-4AD9-BDCC-7E5C885320FD%40gmail.com.