trulia / hologram

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

Loop in the Markdown #275

Open pavliukpetro opened 6 years ago

pavliukpetro commented 6 years ago

Hello, I am creating the styleguide and I have many similar css classes for color. I don't want to type a lot of similar text in the the example block. is there a way to create a loop in the markdown?

jdcantrell commented 6 years ago

I think you need to extend the markdown renderer to do what you're wanting. There's a simple example here: https://github.com/trulia/hologram/blob/master/example_markdown_renderer.rb.example but unfortunately what you're asking for doesn't exist out of the box.