jamdocs icon indicating copy to clipboard operation
jamdocs copied to clipboard

Markdown ## cannot start with a number

Open mrbenosborne opened this issue 4 years ago • 2 comments

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.

mrbenosborne avatar Oct 07 '20 13:10 mrbenosborne

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.

samuelhorn avatar Oct 07 '20 18:10 samuelhorn

When I use Chinese as the title, clicking on the sidebar cannot jump correctly. How can I solve it? image

Xuezenghuigithub avatar Jan 07 '21 06:01 Xuezenghuigithub