tomzx / blog.tomrochette.com

My blog.
http://www.tomrochette.com
MIT License
2 stars 0 forks source link

Rendering issues when section title matches a CSS selector #82

Open tomzx opened 6 years ago

tomzx commented 6 years ago

When a section text is turned into a slug, it may correspond to a CSS selector and cause rendering issue.

For instance, the section "Header" will create a div such as <div id="header">...</div> and as such create rendering issues.

A potential fix is to force a prefix on all title sections, which will make any existing links using the hash broken.

Another solution is to force all the CSS to be prefixed to reduce/prevent collision.