Closed smn closed 3 weeks ago
Hey there,
Thanks for Earmark! We'd a big fan of the library. In the recent .47 upgrade we're noticing that the behaviour of parsing a Markdown table seems to have changed:
Here's what we're seeing for 1.4.46:
Mix.install([ # {:earmark, "1.4.47"}, {:earmark, "1.4.46"}, ])
markdown = """ foo | bar baz | bazoo """ IO.puts Earmark.as_html!(markdown)
<table> <tbody> <tr> <td style="text-align: left;"> foo </td> <td style="text-align: left;"> bar </td> </tr> <tr> <td style="text-align: left;"> baz </td> <td style="text-align: left;"> bazoo </td> </tr> </tbody> </table>
:ok
And here's what we're seeing for 1.4.47:
Mix.install([ {:earmark, "1.4.47"}, # {:earmark, "1.4.46"}, ])
<p> foo | bar baz | bazoo</p>
I'm unable to see from the changelog whether this was intentional or not?
Thanks!
Classic, right after posting I'm seeing that this may be due to GFM tables in Earmark Parser. Investigating that first.
Hey there,
Thanks for Earmark! We'd a big fan of the library. In the recent .47 upgrade we're noticing that the behaviour of parsing a Markdown table seems to have changed:
Here's what we're seeing for 1.4.46:
Section
And here's what we're seeing for 1.4.47:
Section
I'm unable to see from the changelog whether this was intentional or not?
Thanks!