Giter VIP home page Giter VIP logo

Comments (6)

ttimasdf avatar ttimasdf commented on August 16, 2024 1

刚刚看了一眼markdown-it的文档突然想起来这个问题(然后戳了一下 @Haojen 的博客TOC依旧是undefined)。这个问题就是因为TOC锚点生成默认是关闭的需要手动开启(摔)。解决方案就是在博客_config.yml的markdown-it设置里面加上,

markdown:
  anchors:
    level: 1
    permalinkSymbol: ''

默认设置在这里

from hexo-theme-anisina.

Haojen avatar Haojen commented on August 16, 2024

@momaek 多谢告知, 最近会抽时间修复它 : )

from hexo-theme-anisina.

Haojen avatar Haojen commented on August 16, 2024

@momaek 阁下是否更换过 markdown 的解析引擎? 我现在正排查出现这个问题的原因, 正在怀疑是更换 markdown 解析引擎导致的

from hexo-theme-anisina.

ttimasdf avatar ttimasdf commented on August 16, 2024

应该不是吧……毕竟 @Haojen 博主自己的博客TOC也是undefined[斜眼]

from hexo-theme-anisina.

Haojen avatar Haojen commented on August 16, 2024

@ttimasdf 因为鄙人的 markdown 解析引擎不是默认的哟~

from hexo-theme-anisina.

khiav223577 avatar khiav223577 commented on August 16, 2024

這篇可以解決 undefined 的問題:hexojs/hexo-renderer-markdown-it#40

from hexo-theme-anisina.

Related Issues (20)

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.