Open willpiers opened 9 years ago
Yeah, I think we can handle that. Right now the logic is simple to handle hierarchy.
What would you expect if you have, say, an h3 elsewhere? Perhaps also a child of the h2, after the h6 children:
I guess we can collapse level 6 to level 4 to maintain that distinction.
What if we have:
... we'd probably only want to collapse levels missing from the full tree, and squash the h6 to what would be an h4.
A generic algorithm that handles unexpected hierarchies should be possible. I'll try this after I get some more browsers supported. :smile:
you can see an example here https://github.com/RallySoftware/burro/blob/master/UE_SHELL.md
Basically if the structure of the markdown file uses an
h6
as a child of anh2
there will be extra padding generated by thepadding-left
that github applies toul
s. I wonder if your extension could be smart enough to not add extraul
s