- The original text refers to the source code, such as
## Title
. - The displayed article is what you see.
If there are no characters between the "numbers, letters, symbols" of the original title and the "Chinese characters," xlog will automatically add a space in the displayed article and replace the space with -
in the anchor link of the displayed article; however, although the description link in the right-side directory has added a space, it will not automatically be replaced with -
, which causes the link to be unusable and unable to jump. Example: the next subtitle.
After discovering the quotes, I also can't figure out Xlog's logic.
The anchor link is not controlled by HTML but by the underlying JS script.
The blogger's solution: just see the situation!
It is recommended that Xlog modify the JS script, and it will be perfect.
Thanks @sino
Actual Measurement#
-
will also be treated as a symbol, and an additional-
will be added between-
and other text.- Spaces in the original text will be directly replaced with
-
. “
and”
will be directly ignored. Clicking on the title below in the right-side directory will unexpectedly jump directly to the last title.
Title Source Code | Displayed Article | Displayed Article Anchor Link | Right-side Directory |
---|---|---|---|
Hello2 | Hello 2 | Hello-2 | Cannot jump normally |
Hello 2 | Hello 2 | Hello-2 | Jumps normally |
Hello-World | Hello - World | Hello---World | Jumps normally |
Hello World | Hello World | Hello-World | Jumps to Hello“World”1 source code title, but not flush left |
Hello“World”1 | Hello “World” 1 | Hello-World-1 | Cannot jump normally |
Template#
### Template
Hello-World#
Hello-World
Hello World#
### Hello World
Hello“World”1#
### Hello“World”1