kepano / obsidian-minimal

A distraction-free and highly customizable theme for Obsidian.
https://minimal.guide
MIT License
3.49k stars 186 forks source link

First line of code block in list indented poorly #620

Open eikowagenknecht opened 11 months ago

eikowagenknecht commented 11 months ago

Is the bug present when using the default Obsidian theme?

No

Is the bug present when snippets and plugins are disabled?

Yes

Minimal theme version

7.1.0

Describe the bug

image

When including an indented code block in a list, the first line is indented poorly.

Debug info

SYSTEM INFO: Obsidian version: v1.3.5 Installer version: v1.3.5 Operating system: Windows 10 Pro 10.0.22621 Login status: logged in Catalyst license: insider Insider build toggle: off Live preview: off Legacy editor: off Base theme: dark Community theme: Minimal v7.1.0 Snippets enabled: 1 Restricted mode: off Plugins installed: 20 Plugins enabled: 18 1: Templater v1.16.0 2: Dataview v0.5.56 3: Linter v1.17.0 4: Style Settings v1.0.6 5: Minimal Theme Settings v6.3.2 6: Contextual Typography v2.2.5 7: Sortable v0.3.1 8: Hider v1.2.5 9: Calendar v1.5.10 10: Duplicate Line v1.4.1 11: Quick Switcher++ v3.3.4 12: Find orphaned files and broken links v1.9.0 13: Auto Link Title v1.4.1 14: Numerals v1.2.0 15: Tag Wrangler v0.5.11 16: Google Photos v1.2.3 17: Sort & Permute lines v0.7.0 18: Advanced Tables v0.19.1

RECOMMENDATIONS: Custom theme and snippets: for cosmetic issues, please first try updating your theme and disabling your snippets. If still not fixed, please try to make the issue happen in the Sandbox Vault or disable community theme and snippets. Community plugins: for bugs, please first try updating all your plugins to latest. If still not fixed, please try to make the issue happen in the Sandbox Vault or disable community plugins.

sunscan commented 5 months ago

I have the same problem. I fixed with this CSS snippet but I'm not sure if it's correct:

.HyperMD-list-line-nobullet.HyperMD-codeblock.HyperMD-codeblock-begin.HyperMD-codeblock-begin.HyperMD-codeblock-begin {
    margin-left: -0.5em !important;
    margin-right: 0.5em !important;
}