ChatGPT icon indicating copy to clipboard operation
ChatGPT copied to clipboard

[Bug] Markdown tables exported as fenced block code ```

Open SamuelMiller opened this issue 2 years ago • 1 comments

Version

Version 0.12.0 (20230305.043006)

Bug description

Exported markdown tables from the app are formatted as fenced block code rather than tables: https://www.markdownguide.org/extended-syntax/#fenced-code-blocks

Specifically, tables are enclosed using "```" backtick/grave accent syntax which causes the tables to appear as block code when imported into a Markdown editor.

To reproduce the bug, prompt the ChatGPT app to produce a markdown table comparing for example the Mona Lisa and Colgate toothpaste. Then export the chat as markdown. Open the markdown file in a text editor and you'll notice something like the following:

| Differences | Mona Lisa | Colgate Toothpaste |
| --- | --- | --- |
| Type of object | A painting on canvas | A consumer product for oral hygiene |
| Creator | Painted by Leonardo da Vinci in the early 16th century | Created by a team of chemists and researchers at Colgate-Palmolive in the early 19th century |
| Function | Artistic expression and visual appreciation | Oral hygiene and dental health |
| Material composition | Made with oil paint on a wooden canvas | Made with various chemicals and ingredients, including fluoride and abrasives, to clean teeth and freshen breath |
| Size | Measures approximately 30 inches by 21 inches | Comes in various sizes, typically between 4 and 6 ounces |
| Production process | Painted by hand using traditional techniques | Manufactured using modern production processes and machinery |
| Method of use | Intended to be viewed from a distance and admired aesthetically | Applied directly to teeth using a toothbrush and water, and then spit out |
| Lifespan | Has lasted over 500 years and is expected to continue to endure | Typically used up within a few weeks or months, depending on frequency of use |
| Value | Considered to be priceless and invaluable to art history | Has a monetary value that is determined by market demand and supply |
| Cultural impact | Has been the subject of countless studies, interpretations, and parodies, and is a symbol of Western art | Has had a significant impact on public health by promoting oral hygiene and reducing dental problems |

Notice how this table appears as a block code above rather than a table. That is because of the starting and end three backticks, which for some reason is exported from the ChatGPT app. In order for it to appear as a table in a Markdown editor, you have to remove the starting and ending "```"

OS

Catalina OS

Environment

No response

SamuelMiller avatar Mar 06 '23 04:03 SamuelMiller