Skip to content

Babel-style shorthands are rendered inside code listings #180

@gnull

Description

@gnull

Consider this example.

\documentclass{article}

\usepackage{minted}

\newminted[hs]{Haskell}{}

\begin{document}

Minted: \mintinline{hs}{Just 1 >>= pure, ---}

Texttt: \texttt{Just 1 >>= pure, ---}

Verb: \verb|Just 1 >>= pure, ---|

\end{document}

In pdf output, all three will render >>= as is. But with make4ht the first two render it as »=, i.e. the babel shorthand that usually converts >> into a guillemet seems to be kicking in. Also, the --- is rendered as is in pdf, but make4ht interprets it in texttt case as –- (i.e. en-dash followed by hyphen). The other two examples render --- as they should.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions