crowdagger / crowbook

Converts books written in Markdown to HTML, LaTeX/PDF and EPUB

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Bookmark issues when using inline code in md headers

jrappen opened this issue · comments

When adding:

\usepackage[
  usenames,
  dvipsnames,
  svgnames
]{xcolor}

to the template.tex and changing the appearance of inline code in md to:

- \newcommand\mdcode[1]{\texttt{#1}}
+ \newcommand\mdcode[1]{\texttt{\color{Red!33!Black} #1}}

Bookmarks are messed up as follows:

image

when using a header in your markdown source like:

...

## Restricted `begin_edit()` and `end_edit()`

...

XeTeX    : 3.14159265-2.6-0.999991 (TeX Live 2019)
crowbook : v0.15.0
OS       : macOS Catalina 10.15.2 (19C57)
hardware : MBP 15" 2018, i9 2.9GHz, 32GB, 1TB, Radeon Pro 560X