badboy / mdbook-toc

A preprocessor for mdbook to add inline Table of Contents support.
Mozilla Public License 2.0
163 stars 20 forks source link

Double backticks aren't working if they have inner backticks. #23

Closed xFrednet closed 2 years ago

xFrednet commented 2 years ago

Hey, I noticed that double backticks in mdBook that internally have backticks get rendered as just normal inline code segments. An example can be seen at the end of this section in the rustc-dev-guide

The Markdown document states (See online):

When code or an identifier must appear in a message or label, it should be
surrounded with backticks: `` `foo.bar` ``.

Which gets rendered like this:

image

Github's Markdown renders it's like this `mdBook is cool`, including the inner backticks.


Copied from rust-lang/mdBook#1677, in the issue it was suggested that the bug actually originates from here. This might also be related to #21