Skip to content

LaTeX Reader converts -- within a \texttt{} to a single en dash / endash / en-dash. #10781

@mcourteaux

Description

@mcourteaux

I typically like solving simple issues like this in open-source software myself, but I'm lost with the Haskell. (I tried to make the title searchable by putting different variants of endash en-dash en dash).

Explain the problem.

❯ pandoc -f latex -t markdown
hello
this is \texttt{--flag} with dashes.  
This is the same --flag without a code.

Ctrl-D to close stdin, produces:

hello this is `–flag` with dashes. This is the same --flag without a
code.

Note that this is not a simple dash, but one of the weird ones (like endash or emdash?).

Pandoc version?
pandoc 3.6.3
Features: +server +lua
Linux.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions