Skip to content

Unable to use highlighting text in figure captions when output to PDF #6821

@ricpelo

Description

@ricpelo

Steps to reproduce:

  1. Create the following test.md file:

    ![This is a test `x = 5`{.python}](test.png)
  2. Type the following command:

    $ pandoc -s -o test.pdf test.md
    

You get the following error message:

Error producing PDF.
! Undefined control sequence.
\hyper@makecurrent ...activestrue \edef \Hy@param 
                                                  {#1}\ifx \Hy@param \Hy@cha...
l.110 ...malTok{x }\OperatorTok{=} \DecValTok{5}|}

Pandoc version

$ pandoc -v
pandoc 2.11.0.2
Compiled with pandoc-types 1.22, texmath 0.12.0.3, skylighting 0.10.0.2
Default user data directory: /home/ricardo/.local/share/pandoc or /home/ricardo/.pandoc
Copyright (C) 2006-2020 John MacFarlane
Web:  https://pandoc.org
This is free software; see the source for copying conditions.
There is no warranty, not even for merchantability or fitness
for a particular purpose.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions