0

I'm trying to render a table in a :markdown filter in HAML. I've checked the syntax against a cheatsheet and tried both syntaxes presented.

:markdown
  
  ### This is [markdown](https://devhints.io/markdown) yay!

  ------
  
  | Column 1 Heading | Column 2 Heading |
  | ---------------- | ---------------- |
  | Some content     | Other content    |
  
  ------
  
  Column 1 Heading | Column 2 Heading
  --- | ---
  Some content | Other content

Here's the result. The first line and the horizontal rules are just to confirm that the contents are in fact being translated into Markdown—except for the thing I really care about, the table.

example of failed Markdown in HAML

What am I doing wrong? Why is this not working?

iconoclast
  • 21,213
  • 15
  • 102
  • 138
  • does [this](https://stackoverflow.com/questions/12296453/how-to-render-table-with-redcarpet-and-markdown) help you? – Skin_phil Nov 30 '22 at 14:16
  • @Skin_phil: it does _help_ (reminding me that tables are not in the main spec—hard to believe based on how ubiquitous they are in Markdown these days) but it doesn't answer the question of how to make it work with HAML. – iconoclast Nov 30 '22 at 21:12

1 Answers1

0

A few key issues here are that

So it appears that HAML doesn't really give you the ability unless you want to go to the trouble to create your own custom filter.

iconoclast
  • 21,213
  • 15
  • 102
  • 138