Ask A Question

Notifications

You’re not receiving notifications from this thread.

Testing your markdown

Jay Killeen asked in Testing

I see your markdown tables aren't being rendered as tables. I have the same problem :( Any idea how we get this fixed?

| Tables | Are | Cool |
| ------------- |:-------------:| -----:|
| col 3 is | right-aligned | $1600 |
| col 2 is | centered | $12 |
| zebra stripes | are neat | $1 |

I am using the html-pipeline gem and followed the guides in your cast.

Reply

Tables aren't actually part of the official Markdown spec, so you'll see that they don't work all the time. That said, the Github-markdown gem supports it as long as you're rendering as github formatted markdown. I believe mine is but I haven't tested it.

Are you running gfm: true as well?

Reply

Oh wow I didn't realize it wasn't official.

I do have the gfm: true on. I might have to dig a little deeper on this one then. Will let you know how I go.

Reply

Also, I posted this in slack, but for anyone else that sees this, I forgot that I'm using Redcarpet instead of html-pipeline anymore. It's because html-pipeline is a real pain to deploy to Heroku (or at least was).

Reply
Join the discussion
Create an account Log in

Want to stay up-to-date with Ruby on Rails?

Join 81,842+ developers who get early access to new tutorials, screencasts, articles, and more.

    We care about the protection of your data. Read our Privacy Policy.

    Screencast tutorials to help you learn Ruby on Rails, Javascript, Hotwire, Turbo, Stimulus.js, PostgreSQL, MySQL, Ubuntu, and more.

    © 2024 GoRails, LLC. All rights reserved.