turndown-plugin-gfm icon indicating copy to clipboard operation
turndown-plugin-gfm copied to clipboard

fixes #3 by trimming beginning and trailing whitespace in cell content

Open NogsMPLS opened this issue 7 years ago • 2 comments

NogsMPLS avatar Mar 22 '18 19:03 NogsMPLS

Actually fixes #3, lol, typo'd the commit message.

NogsMPLS avatar Mar 22 '18 19:03 NogsMPLS

That wouldn't fix it if the new lines are inside the cell content though. In my opinion, the cell content should simply go through content.replace(/\n+/g, "<br>") which will renders correctly in most Markdown renderers, and will also allow having new lines inside table cells.

laurent22 avatar May 17 '18 00:05 laurent22