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

代码块的首行错位问题 #26

Closed
harry10086 opened this issue Sep 27, 2019 · 4 comments
Closed

代码块的首行错位问题 #26

harry10086 opened this issue Sep 27, 2019 · 4 comments

Comments

@harry10086
Copy link

一直发现代码块的首行和其他的行对不齐,不知道问题出在哪。
我在 index.min.css 文件里加了个就好了:

pre code {
    display: block;
    background: 0 0;
    padding: 2px 2px;
}
@shiyiya
Copy link
Owner

shiyiya commented Sep 27, 2019

有截图么?

@harry10086
Copy link
Author

harry10086 commented Sep 27, 2019

这是演示网站的两篇文章,你看下,代码的第一行和第二行没有对齐,我之前就是这样的。又看不懂代码,只能瞎改,还好改的对齐了。
https://www.wuqing.info/index.php/archives/53/
https://www.wuqing.info/index.php/archives/41/

@shiyiya
Copy link
Owner

shiyiya commented Sep 29, 2019

你是用 Markdown 写的吗?

@harry10086
Copy link
Author

是的,就是``` code ``` 这种

shiyiya added a commit that referenced this issue Sep 29, 2019
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

2 participants