Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Inserting anchor element before headline breaks CSS "+" Selector #47

Open
jdittrich opened this issue Mar 16, 2015 · 1 comment
Open

Comments

@jdittrich
Copy link

Inserting the anchor element before headline introduces an additional element between different headlines and/or paragraphs and headlines which breaks CSS stylesheets using the "+" selector (Select consecutive elements).

Possible Solution: Could the anchor be appended to the headline itself? So instead of <span id="toc4"></span><h3>Options</h3> it would create a <h3>Options<span id="toc4"></span></h3>?

@patrickcate
Copy link

patrickcate commented Nov 8, 2019

Ran into this issue myself. I'd suggest just putting the ID directly on the header element:

<h3  id="toc4">Options</h3>

Looks like with #60 already has this fix.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants