jkitchin / ox-ipynb

org-mode exporter to Jupyter notebooks
170 stars 39 forks source link

Rendering of markdown table #12

Closed sschob closed 5 years ago

sschob commented 5 years ago

Hi, first of all, this is great work. I encountered the following issue when exporting tables. The second line (after the header) results in "|--". While this is fine at least with Jupyter 5.5, this is not correctly rendered in Jupyter 5.7.

For example this org table

| h1 | h2 |
| --- + --- |
|c1  | c2 |

becomes

|Header1|Header 2|
|---
|content1|content2|

but should be


|Header1|Header 2|
|---|---|
|content1|content2|
´´`
jkitchin commented 5 years ago

Thanks for reporting this. Seems weird 5.7 changes how it renders markdown. I pushed a fix that should work for 5.7, and also seems to work in 5.5. Let me know if it works for you.

sschob commented 5 years ago

Thanks for fixing this! Works for me too.