Code Monkey home page Code Monkey logo

Comments (10)

swhhy avatar swhhy commented on July 4, 2024 1

markdown语法.txt

from hugo-theme-diary.

swhhy avatar swhhy commented on July 4, 2024 1

hh,感谢!

from hugo-theme-diary.

AmazingRise avatar AmazingRise commented on July 4, 2024

Hi, swhhy.
Do you have a demo page to show me that?
Or how to reproduce this issue?

from hugo-theme-diary.

swhhy avatar swhhy commented on July 4, 2024

@AmazingRise
https://swhhy.github.io/
请您看看,就那个markdown的ToC有一两行, 其他的都是空的。

from hugo-theme-diary.

AmazingRise avatar AmazingRise commented on July 4, 2024

能否贴上这个Markdown的全部源码?我这边测试了一下三级标题,还是没法复现
谢谢

from hugo-theme-diary.

AmazingRise avatar AmazingRise commented on July 4, 2024

好的,我有空调查一下问题原因。最近比较忙,可能要过几天,新的进展我会在此告知。

你可以通过下面链接中所说的办法禁用auto collapse功能,以保证博客目录正常显示,不会被折叠:
https://github.com/AmazingRise/hugo-theme-diary/wiki/Table-Of-Contents#disable-toc-auto-collapse

from hugo-theme-diary.

swhhy avatar swhhy commented on July 4, 2024

谢谢您百忙之中抽空回复,因为这并不影响主题的整体使用,所以您大可有空再帮助我。BTW,我试过使用 disableAutoCollapse = true ,但仍然出现了之前的问题。

from hugo-theme-diary.

AmazingRise avatar AmazingRise commented on July 4, 2024

谢谢您百忙之中抽空回复,因为这并不影响主题的整体使用,所以您大可有空再帮助我。BTW,我试过使用 disableAutoCollapse = true ,但仍然出现了之前的问题。

感谢反馈,最新的commit修复了没法disableAutoCollapse的问题。
但关于此issue的问题仍在调查。

248b600

from hugo-theme-diary.

swhhy avatar swhhy commented on July 4, 2024

在最新的版本中,我发现ToC只能显示markdown文本的第一行和标题<h1>-<h6>(无论标题在文本的什么位置),希望这能帮到你。

from hugo-theme-diary.

AmazingRise avatar AmazingRise commented on July 4, 2024

在最新的版本中,我发现ToC只能显示markdown文本的第一行和标题<h1>-<h6>(无论标题在文本的什么位置),希望这能帮到你。

是的 因为我上次推的是Fix disableAutoCollapse

Hi, thanks for your themegrinning! and for the issue : my blog is writted in the format of Markdown, but the ToC is empty. Just shows "-CATALOG-", and nothing else.

这个问题已经修复,是对折叠全部目录的判断有问题。
本地测试通过了,劳烦你那边测试一下,谢谢。

(我提交commit的时候写了#54,然后GitHub自动关了...太尴尬了)

This issue has been fixed. The bug is caused by misjudgement of collapsing all classes.

from hugo-theme-diary.

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.