Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

主页自动生成文章摘要时,有可能会导致侧边栏无法加载 #520

Closed
counter2015 opened this issue Apr 3, 2022 · 1 comment

Comments

@counter2015
Copy link

counter2015 commented Apr 3, 2022

我有一个这样的 markdown 文件

# Manjaro 安装配置

title: Manjaro 安装配置
date: 2020-01-21 19:32:30
tags: [Linux, Manjaro] 
categories: [技术]

------




非常感谢这篇[博客](https://printempw.github.io/setting-up-manjaro-linux/)提供的思路,让我在后面的安装过程中少走了不少弯路。

目标安装机器配置:

| -    | -                    |
| ---- | -------------------- |
| 型号 | Lenovo Erazer Y40-70 |
| CPU  | Intel i7-4510U 2G    |
| HDD  | 1T                   |
| 内存 | 4GB                  |
| LAN  | 100M/1000M           |
| OS   | Windows 8.1 PRC      |

当它渲染的时候会错误地插入table标签,却没有插入对应的闭合标签,导致之后的Html都无法正常渲染.

image

虽然说可以通过其他方式绕开它,但是这个问题还是挺别扭的

相关代码

else if post.content
- var br = 0
- for (var i = 0; i < 5; ++i) {
- br = post.content.indexOf('\n',br+1)
if br<0
- break
if br >150
- break
- }
if br < 0
.post-content
!= post.content
else
.post-content
!= post.content.substring(0, br)

@tufu9441
Copy link
Owner

tufu9441 commented Apr 3, 2022

这个确实是个问题,但由于个人能力所限,目前我也不知道能怎么修改一下😂

tufu9441 added a commit that referenced this issue Sep 23, 2022
fix: #520,#223,修复首页文章展示异常
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants