app icon indicating copy to clipboard operation
app copied to clipboard

Visual Markdown editor doesn't respect theme heading sizes

Open madysondesigns opened this issue 3 years ago • 0 comments
trafficstars

I'm interested in tweaking the heading hierarchy for better readability in the Visual Markdown (aka Advanced Markdown aka Dynamic Markdown aka Markdown Alternative) editor.

I have been playing around with a custom theme using the StyleKit custom properties, and adding/changing any of --sn-stylekit-font-size-h1--sn-stylekit-font-size-h6 doesn't affect heading sizes in this editor at all.

It looks like the Milkdown styles are setting a fixed font size instead of using the StyleKit properties, and they're also using !important which overrides these properties if they should be cascading from anywhere else. See org.standardnotes.markdown-visual-editor/src/components/Milkdown)/styles.scss:92-110

madysondesigns avatar Jul 23 '22 21:07 madysondesigns