Code Monkey home page Code Monkey logo

Comments (8)

abelsu7 avatar abelsu7 commented on September 2, 2024

@YvanZh 标题中的空格、其他符号在渲染时会被自动替换为-。所以标题可以采用以下的形式:

## 1. Title
or
## 1-Title

而不要使用空格:

## 1 Title
会被渲染为 1-Title

from hexo-theme-indigo-plus.

YvanZh avatar YvanZh commented on September 2, 2024

我去掉了.和空格还是跳转不了。把中文去掉之后,只有数字和英文还有空格和.,就可以跳转。

from hexo-theme-indigo-plus.

abelsu7 avatar abelsu7 commented on September 2, 2024

停掉hexo server。重新hexo cleanhexo g之后再启动hexo s试试

from hexo-theme-indigo-plus.

YvanZh avatar YvanZh commented on September 2, 2024

重复试了好几次,确实是中文的锅。我特意写了一下一个英文,一个中文的标题。您帮忙看一眼:
https://yvanzh.top/2019/04/08/Paper-Notes-5/

from hexo-theme-indigo-plus.

abelsu7 avatar abelsu7 commented on September 2, 2024

@YvanZh 你的其他文章名称是以_做分隔符的,TOC 直接渲染成了空格,所以不能跳转,尽量文章名都用-分隔,且全部小写。这篇文章我用了一样的标题在本地跑中文是可以跳转的,不知道是什么原因了

from hexo-theme-indigo-plus.

YvanZh avatar YvanZh commented on September 2, 2024

@abelsu7 重新pull了一下,搞定了。应该是我倒腾的时候哪里搞出了毛病。惭愧惭愧,麻烦您了。

from hexo-theme-indigo-plus.

Monster0303 avatar Monster0303 commented on September 2, 2024

@ abelsu7重新拉了一下,搞定了。应该是我倒腾的时候哪里搞出了毛病惭愧惭愧,麻烦您了。

不好意思,我也遇到相同的问题,在同一个文章中,英文和数字都正常,只要是有中文,锚点就会失效。

没有序号,纯中文:

## 静态算法
[算法](#静态算法)

请问怎么解决的?

from hexo-theme-indigo-plus.

YvanZh avatar YvanZh commented on September 2, 2024

@Monster0303 你好,时间太久,我已经记不太清楚是什么原因导致的锚点失效了。你可以先试着重新pull一下主题。

from hexo-theme-indigo-plus.

Related Issues (8)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.