Skip to content

Commit

Permalink
Add support for Markdown tables in comments (fixes #788)
Browse files Browse the repository at this point in the history
  • Loading branch information
apetresc committed Jul 5, 2021
1 parent a7f2f01 commit 990acef
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
3 changes: 2 additions & 1 deletion src/components/MarkdownContentDisplay.js
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down Expand Up @@ -76,7 +77,7 @@ class MarkdownContentDisplay extends Component {
image: Image,
linkReference: Link,
imageReference: Image,
table: null,
table: Table,
listItem: ListItem,
heading: Heading,
code: Paragraph,
Expand Down

0 comments on commit 990acef

Please sign in to comment.