Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Extra square brackets around citations in figure captions #4272

Closed
dhimmel opened this issue Jan 16, 2018 · 2 comments
Closed

Extra square brackets around citations in figure captions #4272

dhimmel opened this issue Jan 16, 2018 · 2 comments

Comments

@dhimmel
Copy link

dhimmel commented Jan 16, 2018

In 2.1 square brackets are added around every citation in figure legends, in addition to square brackets for the entire span of citations.

Before the issue (HTML page):

before

After the issue (HTML page):

after

Here's the markdown source:

![
**The history of Sci-Hub.**
Weekly interest from Google Trends is plotted over time for the search terms "Sci-Hub" and "LibGen".
The light green period indicates when Sci-Hub used LibGen as its database for storing articles [@1H8x8f4Y7].
The light blue period indicates the public availability of access logs from Sci-Hub [@kQFQ8EaO].
The first pink dotted line represents the collection date of the LibGen metadata used in Cabanac's study [@18KKRwlN6; @GxWkjeN2].
The second pink dotted line shows the date of Sci-Hub's Tweeted DOI catalog used in this study.
](https://cdn.rawgit.com/greenelab/scihub/02851bfad35f08ab4d64b9b5a671eebac951cdb9/explore/trends/google-trends.png){#fig:history width="100%"}

Here's the pandoc command.

This issue does not occur with pandoc 2.0.5 but does occur with 2.1.0. It affects figure captions (i.e. markdown's alt text in image embed) but does not seem to effect table captions (i.e. Table: caption_here that follows the table).

@jgm jgm changed the title Extra colons around citations in figure captions Extra square brackets around citations in figure captions Jan 16, 2018
@jgm
Copy link
Owner

jgm commented Jan 16, 2018

This should be fixed by commit d9584d7

@jgm jgm closed this as completed Jan 16, 2018
@dhimmel
Copy link
Author

dhimmel commented Jan 16, 2018

Nice. Don't know what I was thinking calling [ a colon haha

dhimmel added a commit to greenelab/scihub-manuscript that referenced this issue Jan 16, 2018
dhimmel added a commit to dhimmel/manubot-rootstock that referenced this issue Feb 6, 2018
Should upstream fix issues:

Extra brackets around citations in figure captions
jgm/pandoc#4272

WeasyPrint 0.42 gets stuck
Kozea/WeasyPrint#560

Updated pandoc-xnos with better semantic versioning
tomduck/pandoc-fignos#46
dhimmel added a commit to manubot/rootstock that referenced this issue Feb 6, 2018
Fix upstream issues:

Extra brackets around citations in figure captions
jgm/pandoc#4272

WeasyPrint 0.42 gets stuck
Kozea/WeasyPrint#560

Updated pandoc-xnos with better semantic versioning
tomduck/pandoc-fignos#46
dhimmel added a commit to manubot/rootstock that referenced this issue Feb 6, 2018
This build is based on
310dd07.

This commit was created by the following Travis CI build and job:
https://travis-ci.org/greenelab/manubot-rootstock/builds/338192586
https://travis-ci.org/greenelab/manubot-rootstock/jobs/338192587

[ci skip]

The full commit message that triggered this build is copied below:

Update environment on 2018-02-06 (#108)

Fix upstream issues:

Extra brackets around citations in figure captions
jgm/pandoc#4272

WeasyPrint 0.42 gets stuck
Kozea/WeasyPrint#560

Updated pandoc-xnos with better semantic versioning
tomduck/pandoc-fignos#46
dhimmel added a commit to manubot/rootstock that referenced this issue Feb 6, 2018
This build is based on
310dd07.

This commit was created by the following Travis CI build and job:
https://travis-ci.org/greenelab/manubot-rootstock/builds/338192586
https://travis-ci.org/greenelab/manubot-rootstock/jobs/338192587

[ci skip]

The full commit message that triggered this build is copied below:

Update environment on 2018-02-06 (#108)

Fix upstream issues:

Extra brackets around citations in figure captions
jgm/pandoc#4272

WeasyPrint 0.42 gets stuck
Kozea/WeasyPrint#560

Updated pandoc-xnos with better semantic versioning
tomduck/pandoc-fignos#46
adebali pushed a commit to CompGenomeLab/lemur-manuscript-archive that referenced this issue Mar 4, 2020
Fix upstream issues:

Extra brackets around citations in figure captions
jgm/pandoc#4272

WeasyPrint 0.42 gets stuck
Kozea/WeasyPrint#560

Updated pandoc-xnos with better semantic versioning
tomduck/pandoc-fignos#46
ploegieku added a commit to ploegieku/2023-functional-homology-paper that referenced this issue Aug 6, 2024
Fix upstream issues:

Extra brackets around citations in figure captions
jgm/pandoc#4272

WeasyPrint 0.42 gets stuck
Kozea/WeasyPrint#560

Updated pandoc-xnos with better semantic versioning
tomduck/pandoc-fignos#46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants