Skip to content

Commit

Permalink
Write XHTML safe self-closing tags
Browse files Browse the repository at this point in the history
<hr> is no supported in Confluence, <hr/> works.

Fixes #14

Signed-off-by: Michael Haeuslmann <[email protected]>
  • Loading branch information
mihaeu committed Feb 5, 2021
1 parent 7502883 commit 5a297e4
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/UpdatePage.ts
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,10 @@ function convertToWikiFormat(pageData: Page) {
[pageData.title, fileData] = extractTitle(fileData);
}

return marked(fileData, { renderer: new ConfluenceRenderer() });
return marked(fileData, {
renderer: new ConfluenceRenderer(),
xhtml: true,
});
}

async function updateAttachments(mdWikiData: string, pageData: Page, cachePath: string, confluenceAPI: ConfluenceAPI) {
Expand Down

0 comments on commit 5a297e4

Please sign in to comment.