Skip to content

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

Closed
@sjlei

Description

@sjlei

你好,我有一个需求不知能否加一下?
我的需求是:希望可以自定义标题的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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions