Skip to content
This repository has been archived by the owner on Sep 16, 2023. It is now read-only.

Commit

Permalink
Upgrade deps
Browse files Browse the repository at this point in the history
  • Loading branch information
surol committed Aug 6, 2023
1 parent ae33769 commit dd713b8
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 17 deletions.
7 changes: 3 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,6 @@
"@run-z/eslint-config": "^3.5.0",
"@run-z/log-z": "^2.2.1",
"@types/dompurify": "^3.0.2",
"@types/marked": "^5.0.1",
"@typescript-eslint/eslint-plugin": "^6.2.1",
"@typescript-eslint/parser": "^6.2.1",
"@wesib/forms": "^2.0.2",
Expand All @@ -61,11 +60,11 @@
"jest-environment-jsdom": "^29.6.2",
"jest-junit": "^16.0.0",
"jest-mock": "^29.6.2",
"marked": "^5.1.2",
"marked-highlight": "^2.0.1",
"marked": "^6.0.0",
"marked-highlight": "^2.0.2",
"prettier": "^2.8.8",
"prettier-eslint-cli": "^7.1.0",
"rollup": "^3.27.0",
"rollup": "^3.27.2",
"run-z": "^1.11.0",
"sass": "^1.64.2",
"shx": "^0.3.4",
Expand Down
17 changes: 4 additions & 13 deletions src/core/articles/article-service.impl.ts
Original file line number Diff line number Diff line change
Expand Up @@ -64,19 +64,10 @@ export class ArticleService$ implements ArticleService {
async htmlContents(article: Article): Promise<Node> {
const html = await new Promise<string>((resolve, reject) => {
this._schedule(() => {
marked(
article.body,
{
gfm: true,
},
(error, html) => {
if (error != null) {
reject(error);
} else {
resolve(html);
}
},
);
marked(article.body, {
gfm: true,
async: true,
}).then(resolve, reject);
});
});

Expand Down

0 comments on commit dd713b8

Please sign in to comment.