jamdocs
jamdocs copied to clipboard
Markdown ## cannot start with a number
I have a markdown file like:
---
title: HTTP Request
date: 2020-10-07 19:00:00
slug: core
---
## 404
Send an HTTP 404 response back to the client.
This throws the following error in the console:
Failed to execute 'querySelector' on 'Document': '#404' is not a valid selector.
Sounds like it has something to do with markdown setting the heading as its own id, and doesn't like an id that begins with a number. The strange thing is I cant reproduce the exact same error when i try, for me it works.
When I use Chinese as the title, clicking on the sidebar cannot jump correctly. How can I solve it?