In a Dev category thread titled ‘API not accepting MarkDown Tables’, dpaulus reports that their API posts, which previously rendered Markdown tables correctly, suddenly stopped working as of March 11, 2019. The issue appeared to stem from table separators (three dashes) being converted to full lines, breaking table rendering. dpaulus observed similar behavior when manually posting, suggesting a site-wide rendering change. Falco suggested disabling the enable markdown typographer setting, which restored the dashes but did not fully resolve the table rendering issue dpaulus. After further testing, dpaulus confirmed the issue was resolved, likely due to the setting change. Falco noted that the API expects \n for line breaks, not <br>, though the problem was already fixed. The thread concludes with the issue resolved and the user encouraged to continue.
Description of Problem: Use the API to make posts. This has worked perfectly for the last 4 months (the last being Monday 3/11/19) until today. I created a couple very simple test to narrow down the problem:
Data being sent thru API:
|Col1|Col2| |—|—| |Col1data|Col2data| Image of the result:
Notice the highlighted first header/data separator. Somehow it was changed from 3 dashes to a full line. The second separator was not changed. I believe this is the problem. Because the first column separator is not 3 dashes anymore, it doesn’t interpret it as a markdown table anymore. I just don’t know what causes the 3 dashes to change to this line char(s).
I can (sort of) replicate this ‘changing of dashes to a line’ when posting manually as well. If I enter this (note the second column separator is 3 dashes)…well, it is until it posts…
|Col1|Col2|
|___|—|
|Col1data|Col2data|
The post will actually show the second separator now as a full line. Since, I’m a new user to this site, it’s saying I can’t post more than two images (huh?), so I can’t show the exact image, but here is a test url: https://try.discourse.org/t/test-table-cause-seeing-problem/1335
I believe whatever is causing that change of the dashes to the line character, is also what is affecting the 3 dashes to change in the API as well. But, this is all a guess.
Can someone please help shed any light on this? 1) Why is this happening? 2) Did something change recently that could have caused this?
Thanks for the quick reply Rafael. That definitely got back the 3 dashes, but it still displays as plain text, instead of converting it to a table, like I would expect. So, quite possibly, what I thought was the issue was not :-(. Any other suggestions as to why this may not be displaying correctly as a table after posting thru the API?