evbacher / gd2md-html

Convert a Google Doc to Markdown or HTML. This Docs add-on converts a Google Doc to simple Markdown and/or HTML.
Apache License 2.0
649 stars 57 forks source link

gDoc 1x1 table converts to Code Block #119

Open Hasimir0 opened 1 year ago

Hasimir0 commented 1 year ago

As the title says, I have a gDoc with several 1x1 tables. The conversion translates them into code, which strips the text of all formatting and creates a non-wrapping text block.

Is there a way to fix/work around this?

evbacher commented 1 year ago

When I first created this tool at Google, there was an internal add-on (similar to the popular Code Blocks add-on), which converted single-cell tables to code-block formatting. I believe Code Blocks does the same thing. I do not want to change this behavior for all users. Docs to Markdown honors that convention for compatibility.

What are you using single-cell tables for? -- just curious.

Hasimir0 commented 1 year ago

In the original document I used 1x1 tables as boxes to highlight text, usually when providing an example or an explanation note :)