trulia / hologram

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

html_example_table not working #189

Closed jdozierezell closed 9 years ago

jdozierezell commented 9 years ago

Hologram is great so far, but I'm having trouble implementing the table display. It seems simple enough, but the code I'm using below only results in divs and the markup shows the "codeExample" rather than the "codeTable" class as indicated in block_code_renderer. Can someone tell me where I'm going wrong?

/*doc

---
title: Headings
name: headings
category: basics

---
```html_example_table 

    <h1>Heading 1</h1>

    <h2>Heading 2</h2>

    <h3>Heading 3</h3>

    <h4>Heading 4</h4>

    <h5>Heading 5</h5>

    <h6>Heading 6</h6>

*/

gpleiss commented 9 years ago

You forgot to close the html_example_table. Before the */ you need to add a set of 3 closing backticks.

charliecm commented 9 years ago

I'm experiencing the same issue. I'm using the SASS flavour syntax, but it's rendering the default html_example instead of the table layout.

jdcantrell commented 9 years ago

Are you using the latest development version of hologram or the one on rubygems?

On Wed, Dec 31, 2014, at 11:41 AM, Charlie wrote:

I'm experiencing the same issue. I'm using the SASS flavour syntax, but it's rendering the default html_example instead of the table layout.


Reply to this email directly or view it on GitHub: https://github.com/trulia/hologram/issues/189#issuecomment-68464672

jdozierezell commented 9 years ago

Sorry, the backticks were in there but the comment box had some trouble with them. I'm using the gem. I'm a complete ruby noob (anything beyond gem install is currently beyond me), so would you mind describing how to use the development version instead?

jdozierezell commented 9 years ago

An update and closing the issue...

I'm still pretty sure I'm painfully uneducated when it comes to Ruby, but I did manage to get the development gem installed through specific_install. With this version, html_example_table works like a charm. All's well, though it might be helpful to mention that the latest development version is necessary to use the feature. Thanks!