Skip to content
This repository has been archived by the owner on Jan 20, 2022. It is now read-only.

Commit

Permalink
fix: Table directly after list breaks on reload
Browse files Browse the repository at this point in the history
closes #329
  • Loading branch information
tommoor committed Dec 13, 2020
1 parent 410c639 commit bab82b2
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/lib/markdown/serializer.js
Original file line number Diff line number Diff line change
Expand Up @@ -307,6 +307,9 @@ export class MarkdownSerializerState {
const prevTable = this.inTable;
this.inTable = true;

// ensure there is an empty newline above all tables
this.out += "\n";

// rows
node.forEach((row, _, i) => {
if (headerBuffer) {
Expand Down

0 comments on commit bab82b2

Please sign in to comment.