Paragraph indentation that works in Source and Live Preview modes (not Reading View)

The following CSS does paragraph indentation in Source and Live Preview mode quite well. Subsequent text paragraphs, and only text paragraphs, are indented. If you add an empty line between two paragraphs, indentation is reset and the next paragraph does not indent. Other content, such as lists and tables, also resets indentation.

[class="cm-line"]:not(:has(> br:only-child)) + [class="cm-line"],
[class="cm-line"]:not(:has(> br:only-child)) + [class="cm-active cm-line"],
[class="cm-active cm-line"]:not(:has(> br:only-child)) + [class="cm-line"],
[class="cm-active cm-line"]:not(:has(> br:only-child)) + [class="cm-active cm-line"] {
    text-indent: 2em;
}

Unfortunately, I can’t get the same behaviour in Reading View because paragraphs there are separated by <br> elements with no other targetable markup. If anyone has any ideas, please let me know!

Hi @Raymond874Butler :wave:

I don’t mean to be blunt, but was this suggestion of your making or something expelled from a chat bot?

Because it seems like it’s from a chat bot.

That is definitely AI generated.

I was asking ChatGPT a lot of questions myself, and it kept thinking that the cm-line class applied in the Reading View context. It doesn’t.