I'm hitting a bit of a roadblock. I'm building an obsidian theme, and I want to make a little bit of an out-of-spec "markdown feature". The problem I'm running into is conditionals with css selectors. I'm a huge fan of the :has pseudo-selector but it doesn't support nesting, which makes that I'm running into the following.
Let: - An "empty line" is a line (
.cm-line
.cm-line
) with only one child of type
br
br
- An "overline" is a blockquote (
.HyperMD-quote
.HyperMD-quote
) surrounded by empty line siblings, followed by any heading (
.HyperMD-header
.HyperMD-header
) - A "subtitle" is a blockquote (
.HyperMD-quote
.HyperMD-quote
) surrounding by empty line siblings, preceeded by any heading (
.HyperMD-header
.HyperMD-header
)
I want to select the empty line in between the headings and the subtitle. The problem lies in the nested conditions.