Markdown multiline code blocks in tables when rows have to be specified with one-liners

Meredith picture Meredith · Jun 12, 2014 · Viewed 14.8k times · Source

I have a table:

| YAY! | TABLE | \^^/ | 1-liner JSON column! |
| ---- | ----- | ---- | -------------------- |
| That |  has  | JSON | `{a: 1, b: 2, c: 3}` |
| Here |  is   | more | `{d: 4, e: 5, f: 6}` |

Is there any way for me to insert in multiline code blocks into a generated table cell?

Answer

Meredith picture Meredith · Jun 12, 2014

Replace ` with <code> tags and use &nbsp; and <br>for indentation.

Similarly you can use <pre> tags instead of ```.