Skip to content

Markdown parse error #5

Closed
Closed

Description

@diyselfway

你好,很喜欢你制作的博客模版,最近在折腾我的博客,Fork了你的项目。可是在提交博文的时候,发现Markdown解析有点问题,会在标题旁多个#号,二级三级目录无法解析,表格分割线无法解析,如下:
image
image

我查看了你的博客,以及其他fork自你博客的朋友的博客,发现都存在这个问题(win、ios及Android下都存在)。我在本地用Jekyll调试也出现了这一问题,由于我在Github上预览post时发现解析正常,所以我尝试注释掉config里面的markdown:kramdown,问题依然存在。没办法了,只能来请教你了(中度强迫症患者,对页面的瑕疵不能忍,望解救)。

Activity

  1. Huxpro commented on Sep 12, 2015

    @Huxpro
    Owner

    Hi,

    会在标题旁多个 # 号,是因为在 post.html 中调用了 anchor.js,目的是给每个标题增加一个“可以点击的锚点”,用以在分享时可以直接跳转到某个标题。
    如果需要,我可以增加一个是否开启 anchor.js 的配置。如果你需要自定义,anchor.js 也提供了很多配置项,可以去文档查。

    至于 Markdown 的解析问题,目前使用的是 Github Flavored Markdown,请自行确认语法是否 illegal

    Thanks for your feedback!

  2. diyselfway commented on Sep 12, 2015

    @diyselfway
    Author

    谢谢,已经解决。

  3. changed the title [-]Markdown语法解析问题[/-] [+]Markdown parse error[/+] on Nov 16, 2015
  4. added a commit that references this issue on Sep 12, 2023
  5. added a commit that references this issue on Jan 25, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions