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

文章引用渲染缺少换行显示 #66

Open
adozhao opened this issue Dec 20, 2023 · 2 comments
Open

文章引用渲染缺少换行显示 #66

adozhao opened this issue Dec 20, 2023 · 2 comments

Comments

@adozhao
Copy link

adozhao commented Dec 20, 2023

文章编辑的时候引用的内容存在换行,最终渲染效果如下:

halo默认主题最终渲染效果

image

higan主题最终渲染效果

image

@adozhao adozhao changed the title 文章引用渲染错误 文章引用渲染缺少换行显示 Dec 20, 2023
@guqing
Copy link
Owner

guqing commented Dec 21, 2023

设计就是如此,实际上不是没有换行,而是 p 标签的 margin 被设置为了 0,如果不设置为 0 显示的时候会不美观

image

@HowieHz
Copy link
Contributor

HowieHz commented Jan 10, 2025

一种可能的解决方案

article .content blockquote p {
  margin: inherit;
  margin-left: 0;
  margin-right: 0;
}

article .content blockquote p:first-child {
  margin-top: 0;
}

article .content blockquote p:last-child {
  margin-bottom: 0;
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants