banner
「雲華」CloudSino

網絡一隅¦Net`Corner

願我的祝福與你同在︕
github
bilibili
zhihu
steam
discord user
misskey
follow
email

About the directory jump issue of xLog

@waverider @dxs

Loading...

It seems like I have an idea (sorry, I don't check DC much).
It might be a bit inconvenient to post in the comments, so I’m just posting an article.


Would you like to try changing all the Arabic numerals in the article title to Chinese numerals,
or manually adding spaces between the numbers and Chinese characters?
(I've tried it, and it works.)


The principle is roughly as follows:

The directory jump in xLog is achieved by clicking on the link to the subheading "https://waverider.xlog.app/yi-yu-zheng-ri-ji#user-content - 记录哪些内容".

The "#" after the main title of the article also points to this link.

Moreover, theoretically, the sidebar should work the same way.

Additionally, when numbers and Chinese characters appear consecutively in the title,
the normal and jumpable link will add a hyphen "-" between them,
such as "https://waverider.xlog.app/yi-yu-zheng-ri-ji#user-content-2014 - 年".
This should be a matter for the typesetting engine,
which automatically adds spaces between consecutive Chinese characters, English letters, numbers, and symbols for better aesthetics, with the spaces corresponding to the hyphens "-" in the link.
The same applies to the main title, thus making the link work as well.

But!!!

The links in the sidebar do not have the hyphen "−" added!
The link it points to is "https://waverider.xlog.app/yi-yu-zheng-ri-ji#user-content-2014 年".
This is an invalid empty link!


The problem has been identified. If someone knows JS, they could already submit a PR to xLog.
Here’s the link: https://github.com/Crossbell-Box/xLog/

Loading...
Ownership of this post data is guaranteed by blockchain and smart contracts to the creator alone.