Skip to content

Commit

Permalink
normalise html
Browse files Browse the repository at this point in the history
  • Loading branch information
davidar committed Apr 13, 2023
1 parent 0de9a88 commit c553e12
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -209,6 +209,7 @@ async function convert(source: string, opts: pandiff.Options = {}) {
.pandoc(...args, '--from=html')
.end(html)
.toString();
html = new JSDOM(html).serialize();
return html;
}

Expand Down

0 comments on commit c553e12

Please sign in to comment.