trulia / hologram

A markdown based documentation system for style guides.
http://trulia.github.io/hologram
Other
2.16k stars 199 forks source link

Annoying <p class="styleguide"> generated listing CSS styles commented #261

Open nicoguefveneu opened 8 years ago

nicoguefveneu commented 8 years ago

Hello,

I got the following HTML generated in the index.html and the basics.html (above the CSS declarations) : <p class="styleguide">[OK Button]: basics.html#OK Button [Search Input]: basics.html#Search Input</p>

I have two comments in a LESS file ("OK Button" and "Search Input").

It's pretty annoying, how is it possible to get rid of that ? It's not displayed in your "hologram example".

Thanks !

robertbasden commented 8 years ago

Hi there,

I was also having this issue, it turned out that it was caused by having things like:

---
title: Colors
name: 1 colors
category: Basics
---

in my front matter (I was using the "1" to force the correct ordering, think I saw that as a suggestion on stack overflow or something), its the space thats causing the issues.

The fix is just to do:

---
title: Colors
name: 1-colors
category: Basics
---

Or in your case using OK-Button and Search-Input, I believe these are only used for URLS so shouldn't display anywhere.