wormi4ok / evernote2md

Convert Evernote .enex files to Markdown

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Tables are not valid Markdown tables

ar7hur opened this issue · comments

A simple 2x2 Evernote table is exported as:

|a|b|
|c|d|

Which Github's markdown renders as:

|a|b|
|c|d|

I think it should be:

|a|b|
|--|--|
|c|d|

Which gives:

a b
c d

(Since tables are not official markdown, it may be a design decision. My view is based on Github's markdown.)

That's true. Actually, the library I use supports table formating with proper markdown headers if the HTML input is semantically correct, using <th> HTML tags (table header). But Evernote formats all table cells using the <td> tag (table data), so it's harder to identify where the header is.

If you know any open source project that renders some input into markdown as you described - please share a link here, It would be curious to see how it's implemented.

I'll keep this issue opened for now.

Just found out that the upstream library already implemented this! Version 0.17.0 uses an updated dependency and renders tables properly 🎉