mirror of
https://github.com/jgm/pandoc.git
synced 2026-09-30 19:35:38 +00:00
`%` does not function as a comment character inside `url`
(where URL-encoding is common).
Commit 6fb2973a58 mistakenly
took this reassignment of `%` to be a general feature of
braced (but not quoted) BibTeX fields.
This commit restores the correct behavior of `%` in braced fields
other than `url`, and corrects the behavior of `%` in `url`
when the value is quoted.
Closes #7678 (again).
32 lines
397 B
Markdown
32 lines
397 B
Markdown
```
|
|
% pandoc -f bibtex -t csljson
|
|
@misc{doe,
|
|
author = "Jane Doe",
|
|
title = "Work",
|
|
year = "2021",
|
|
url = "%20and%20"
|
|
}
|
|
^D
|
|
[
|
|
{
|
|
"URL": "%20and%20",
|
|
"author": [
|
|
{
|
|
"family": "Doe",
|
|
"given": "Jane"
|
|
}
|
|
],
|
|
"id": "doe",
|
|
"issued": {
|
|
"date-parts": [
|
|
[
|
|
2021
|
|
]
|
|
]
|
|
},
|
|
"title": "Work",
|
|
"type": ""
|
|
}
|
|
]
|
|
```
|