Sha256: 9a15527a7e10de1334ebaf71007fda8948938ac6773225302effca94517e34b0
Contents?: true
Size: 938 Bytes
Versions: 3
Compression:
Stored size: 938 Bytes
Contents
#RenderAsMarkdown RenderAsMarkdown is a small Ruby gem featuring simple to use objects to turn data into Markdown. Currently implemented is a table in GitHub-flavoured Markdown. It's not fully featured yet. ## Table It's really easy to render a table in (GHf)MD, but the simplest approach doesn't look that nice in raw mode. That's why there is this simple class, tables work in the terminal AND on Github. ```Ruby t = RenderMarkdown::Table.new %w{eins zwei superkalifrageristric} t << %w{hoch-soll-er-leben 3 mal-hoch} puts t.render ``` renders the following table ``` eins |zwei|superkalifrageristric ------------------|----|--------------------- hoch-soll-er-leben|3 |mal-hoch ``` Thanks to Github, this is also rendered in HTML. Nice! eins |zwei|superkalifrageristric ------------------|----|--------------------- hoch-soll-er-leben|3 |mal-hoch
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
render-as-markdown-0.0.4 | README.md |
render-as-markdown-0.0.3 | README.md |
render-as-markdown-0.0.2 | README.md |