elements icon indicating copy to clipboard operation
elements copied to clipboard

Inline code with in a section title broken in TOC

Open daniel-white opened this issue 3 years ago • 0 comments

Describe the bug

When a section header includes inline code, the table of contents listing the sections omits the inline code text

To Reproduce

  1. Create a markdown file as such
# My document
## Foo `bar`
  1. Load the markdown file
  2. Observe the TOC omitting "bar"

Expected behavior

I would have expected the inline code to be preserved or just made into plain text.

Additional context

Add any other context about the problem here.

Screenshots If applicable, add screenshots to help explain your problem.

Environment (remove any that are not applicable):

  • Library version: [e.g. 3.0.0]
  • OS: [e.g. Windows 7]
  • Browser: [e.g. Chrome 61]
  • Platform: [desktop or web]

daniel-white avatar Jan 25 '22 20:01 daniel-white