SuperAPI AI Directory

doc-add-simple-hash

General & other

View repository

Updated 10-16 08:08

About this skill

Add a simple hash anchor to the document heading

The current markdown document system supports the {#simple-hash} syntax to make the hash anchor of a Chinese heading become a simple English hash anchor, for example:

# 文档标题 {#simple-hash}

will generate the hash anchor #simple-hash, instead of the default #文档标题。

It is necessary to scan the Chinese headings in the user's current document and, based on the semantics of their Chinese content, generate simple English hash anchors using the above syntax.

Special note

  • A hash anchor can only contain lowercase letters, numbers, and hyphens (-); it cannot contain spaces or other special characters.
  • A hash anchor cannot start or end with a hyphen.
  • A hash anchor cannot duplicate the hash anchor of any other heading in the document.