ganesshkumar / obsidian-excel-to-markdown-table

An Obsidian plugin to paste data from Microsoft Excel, Google Sheets, Apple Numbers and LibreOffice Calc as Markdown tables in Obsidian editor.
MIT License
201 stars 7 forks source link

[BUG] If multiple line exists in one cell, this plugin parses quirkly. #17

Open dewcked opened 2 years ago

dewcked commented 2 years ago

Describe the bug

If multiple line exists in one cell, this plugin parses quirkly and generate wrong table.

# Name Method Notes
1 Pasting Ctrl/Cmd + V will paste only table with two or more columns
2 Hotkey Crtl/Cmd + Alt + V will paste table with one column as well
reassign the Hotkey from settings if needed
3 Command Palette Ctrl/Cmd + P > Excel to Markdown will paste table with one column as well

To Reproduce

Steps to reproduce the behavior:

Tyy copy & pasting table from https://github.com/ganesshkumar/obsidian-excel-to-markdown-table#demo into obsidian.

Expected behavior

A clear and concise description of what you expected to happen.

# Name Method Notes
1 Pasting Ctrl/Cmd + V will paste only table with two or more columns
2 Hotkey Crtl/Cmd + Alt + V will paste table with one column as well
reassign the Hotkey from settings if needed
3 Command Palette Ctrl/Cmd + P > Excel to Markdown will paste table with one column as well

Desktop: