Skip to content

希望可以自定义标题的id #659

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

Closed
sjlei opened this issue Oct 30, 2018 · 0 comments
Closed

希望可以自定义标题的id #659

sjlei opened this issue Oct 30, 2018 · 0 comments

Comments

@sjlei
Copy link

sjlei commented Oct 30, 2018

你好,我有一个需求不知能否加一下?
我的需求是:希望可以自定义标题的id

为什么我会有这样的想法呢?因为我的docsify网站是中文的,
因此标题也都是使用的中文标题,类似于:

### 你好,世界!

因此生成的URL就是?id=你好,世界!,这看起来没有什么问题,但是当想要复制链接地址给其他人发过去的时候,会自动进行URL编码,导致变成?id=%E4%BD%A0%E5%A5%BD%EF%BC%8C%E4%B8%96%E7%95%8C%EF%BC%81,这么一长串字符谁看谁难受,而且还不直观。

所以我想加一个可以自定义标题id的功能,可以和resize-image一样的写法,类似于:

### 你好,世界! :id=helloworld

而生成的URL就是?id=helloworld

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