Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Why is my h1 id is -,Chinese? #1042

Closed
ghost opened this issue Feb 2, 2018 · 1 comment
Closed

Why is my h1 id is -,Chinese? #1042

ghost opened this issue Feb 2, 2018 · 1 comment

Comments

@ghost
Copy link

ghost commented Feb 2, 2018

markdown:

### 原理

html:

<h3 id="-">原理</h3>

why this id is -?

@joshbruce
Copy link
Member

joshbruce commented Feb 2, 2018

@rhatyang: Pretty sure it has to do with encoding of characters. Also thinking we will be deprecating this behavior in the future as it is not explicitly called out in a spec (could be wrong). Therefore, recommend making a second pass to generate the ids once the markup (HTML) has been generated.

This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant