Escape it with a backslash? That works for many things in Markdown. Alternatively, use one of the HTML entities for the pipe character, e.g. | (or the more meaningful | as mentioned by @GalaxyCat105).
The following Markdown:
I posted this on meta S.O originally because I couldn't post it here (not enough rep) but apparently that restriction was removed and I was told maybe I should repost it here.
I tried to post this markdown table in an answer on S.O
| Number of bytes | First code point | Last code point | Byte 1 | Byte 2 | Byte 3 | Byte 4 |
| - | ------- | -------- | -------- ...
The problem is this block of code near the end of your post:
SELECT *, ((longitude - 9.876543210987654321) ^ 2
+ (latitude - 1.234567890123456789) ^ 2) AS squared_dist
WHERE ((longitude - 9.876543210987654321) ^ 2
+ (latitude - 1.234567890123456789) ^ 2) < 0.000000001 -- or whatever
ORDER BY point (longitude, latitude)
This bug has been fixed in Markdig, the server-side Markdown renderer we're using. I just updated the version we use to the one including the bugfix for this specific issue. Moving forward, you should see a proper level-2 heading in blockquotes with the syntax you gave in your example.
As the other answers have mentioned, you could escape it with a backslash, which is probably a better solution than mine, but you could also use the HTML entities | or | in place of the pipe character.
|Code |Comment |
|a | b | Comment 1 |
a | b
Do the displayed tables have to be full width?
Or, more accurately, when a table is simple and small, as (for example), in this SQL question on Stack Overflow, it would be nicer to my way of thinking if the tables did not expand to the full width.
The tables there are:
Stack Snippets are indeed rendering eagerly, even inside code blocks. This original bug report never got an official response and no answer to address workarounds.
Your only choice seems to be using HTML.
Wrap the content of the code block between <pre><code> and </code></pre>, and replace every < in the content of the code block ...
While we wait for this feature to be implemented, here is a trick you can use from within excel to convert the data into markdown format:
In an empty cell to the right of the first row of the data, use this formula:
where A1 and C1 should be updated to reflect the starting and ...
All text to the right of a table is ignored.
I am not sure if this was done on purpose. If it is not a bug, adding this caveat in the post would be helpful.
How did I encounter this issue?
I was editing some posts on Stack Overflow with "hardcoded" tables (I don't know what's the term for ...