forestryio / hugo-theme-novela

Novela, the simplest way to start publishing with Hugo and Forestry.
https://hugo-novela-forestry.netlify.app/
MIT License
361 stars 192 forks source link

Limit list elements to direct children only #68

Open cipherboy opened 3 years ago

cipherboy commented 3 years ago

Without this fix, nested lists are broken, especially mixed ordered/unordered nested lists. This is because rulesets from both apply, causing double display of styling on a given element.

Signed-off-by: Alexander Scheel <alexander.m.scheel@gmail.com>

Before:

Screenshot from 2020-12-26 19-47-22

After: Screenshot from 2020-12-26 19-49-25


Note: You might also consider applying a rule to indent nested lists, but that is outside the scope of this PR.