We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9748954 commit b670eeaCopy full SHA for b670eea
index.js
@@ -80,8 +80,11 @@ async function main() {
80
pageTitle,
81
currentParentPageId
82
);
83
- markdownToHtml(root + path, (err, data) => {
84
- let htmlContent = handleAttachments(contentPageId, data);
+ markdownToHtml(root + path, async (err, data) => {
+ if(err) {
85
+ console.log(err);
86
+ }
87
+ let htmlContent = await handleAttachments(contentPageId, data);
88
syncConfluence.putContent(contentPageId, pageTitle, htmlContent);
89
});
90
} else {
0 commit comments