colineckert / obsidian-things

An Obsidian theme inspired by the beautifully-designed app, Things.
MIT License
707 stars 60 forks source link

Please fix the problem of code block content layout. The problem has been identified. I have added relevant code in the comments. #117

Closed luanhaixin closed 1 year ago

luanhaixin commented 1 year ago

/ fix the bug appear when user does not specify language / .markdown-reading-view .markdown-preview-view pre code { display: block; }

/ more beautiful / body:not(.no-codeblock-line-numbers) .markdown-preview-view pre code { padding: var(--size-4-1) var(--size-4-5); }

colineckert commented 1 year ago

thank you @luanhaixin for the code and for creating the issue! The solution works great for now and I've pushed up the fix. If it works on your end, pls close this issue. Thanks!