I'm using redcarpet as the engine in middleman. The table layout does not render a table in html
Are you sure you have enabled the :tables extension in the parser?
I'll double check. Probably not. Can I use the same directives to decorate the pre tag for Google code syntax pretty print? I need the pre tag to have a class added. I don't want to resort to jquery.
@myessentialapps : Do you still have this issue with Middleman and table rendering please?
Thanks for the quick answer :)
I'm trying to use the table rendering extension, but it doesn't work for me:
irb -->: text = "\n\n| head | head | head |\n| - | -: | :-: |\n| content | 1 | 2 |\n\n"
==> "\n| head | head | head |\n| - | -: | :-: |\n| content | 1 | 2 |\n\n"
irb -->: Redcarpet::Markdown.new(Redcarpet::Render::HTML.new, tables: true).render(text)
==> "<p>| head | head | head |\n| - | -: | :-: |\n| content | 1 | 2 |</p>\n"
Could somebody help me with some advice?
@kaze : Actually, you need to define where headers are with |-| like this:
| head | head | head |
| - | -: | :-: |
| content | 1 | 2 |