From 990acef49822ae0766aef2b3d6e4d38e191fdfcb Mon Sep 17 00:00:00 2001 From: Adrian Petrescu Date: Sun, 4 Jul 2021 21:59:41 -0400 Subject: [PATCH] Add support for Markdown tables in comments (fixes #788) --- CHANGELOG.md | 1 + src/components/MarkdownContentDisplay.js | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 64459b173..c88de8fbb 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -15,6 +15,7 @@ All notable changes to this project will be documented in this file. **Fixed** +- Markdown tables would hang edit mode, now tables are correctly rendered (#788) - Detach all engines when the window is closed (thanks to @ebifrier, #700) - Analysis variation replay was not removed when navigating to a different node (thanks to @ebifrier, #712) diff --git a/src/components/MarkdownContentDisplay.js b/src/components/MarkdownContentDisplay.js index 2a78708db..6c5b306a7 100644 --- a/src/components/MarkdownContentDisplay.js +++ b/src/components/MarkdownContentDisplay.js @@ -34,6 +34,7 @@ const Emphasis = generateBasicComponent('em') const Strong = generateBasicComponent('strong') const Delete = generateBasicComponent('del') const ListItem = generateBasicComponent('li') +const Table = generateBasicComponent('table') function Paragraph({children}) { return h('p', {}, htmlify(children)) @@ -76,7 +77,7 @@ class MarkdownContentDisplay extends Component { image: Image, linkReference: Link, imageReference: Image, - table: null, + table: Table, listItem: ListItem, heading: Heading, code: Paragraph,