elements
elements copied to clipboard
Inline code with in a section title broken in TOC
Describe the bug
When a section header includes inline code, the table of contents listing the sections omits the inline code text
To Reproduce
- Create a markdown file as such
# My document
## Foo `bar`
- Load the markdown file
- 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]