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

Apostrophe in Headings Escaped as [cq] in PDF Table of Contents #7731

Closed
matttproud opened this issue Dec 6, 2021 · 2 comments
Closed

Apostrophe in Headings Escaped as [cq] in PDF Table of Contents #7731

matttproud opened this issue Dec 6, 2021 · 2 comments

Comments

@matttproud
Copy link

Explain the problem.

In the generated table of contents for PDF documents using the pdfroff engine, an apostrophe (') is rendered as the ROFF escaping of [cq]. To reproduce:

$ cat defect.md
# Introduction
This is an introduction.

## The City's Context in My Life

It was very important.

$ pandoc --pdf-engine pdfroff defect.md -o defect.pdf

This is rendered as such in evince:

image

Pandoc version?

$ pandoc -v
pandoc 2.9.2.1
Compiled with pandoc-types 1.20, texmath 0.12.0.2, skylighting 0.8.5
Default user data directory: /home/mtp/.local/share/pandoc or /home/mtp/.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.

Debian 11.1.

@matttproud matttproud added the bug label Dec 6, 2021
@jgm
Copy link
Owner

jgm commented Dec 6, 2021

Confirmed with latest pandoc.

@jgm
Copy link
Owner

jgm commented Dec 6, 2021

The ms writer produces:

.SH 2
The City\[cq]s Context in My Life
.pdfhref O 2 "The City\[cq]s Context in My Life"
.pdfhref M "the-citys-context-in-my-life"

The second line .pdfhref O should be changed so that no roff syntax (such as [cq]) is used.

@jgm jgm closed this as completed in 23b2617 Dec 6, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants