I added !important to all the .markdown-preview-view h* and .cm-header-* so that they take priority. Without those, I found the font-size was overwritten by app.css line 2289.
Is this a recent change since my theme was working before? Also is there a way to not manually set !important in the theme but still let the theme’s style take priority?
u should update ur snippet as obsidian now uses .HyperMD-header-x classes for defining header <div>s in editing view. the .cm-header-x only changes at <span> level. use this snippet template to get what u want without putting in !important. css prioritise those with higher specificity, so add more upper divs classes to gain priority. but the below snippet works to override the default theme.