Skip to content

Commit

Permalink
Merge branch 'master' into update-lint-setting
Browse files Browse the repository at this point in the history
  • Loading branch information
nabeliwo committed Dec 27, 2023
2 parents f6de294 + 78a1699 commit a126b56
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
6 changes: 4 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,9 @@
},
"dependencies": {
"microcms-js-sdk": "^2.5.0",
"remark-html": "^16.0.1"
"remark-html": "^16.0.1",
"remark-parse": "^11.0.0",
"unified": "^11.0.4"
},
"devDependencies": {
"@typescript-eslint/parser": "^6.16.0",
Expand All @@ -33,7 +35,7 @@
"postcss-preset-env": "^9.3.0",
"prettier": "^3.0.3",
"prettier-plugin-astro": "^0.12.0",
"stylelint": "^15.10.3",
"stylelint": "^15.11.0",
"stylelint-config-prettier": "^9.0.5",
"stylelint-config-standard": "^34.0.0",
"typescript": "^5.3.3"
Expand Down
3 changes: 2 additions & 1 deletion src/services/microcms/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ export const convertMarkdownToHTML = async (markdownText: string) => {
const parsedContent = await unified()
.use(remarkParse)
.use(remarkHtml)
.parse(markdownText);
.process(markdownText);

return parsedContent;
};
2 changes: 1 addition & 1 deletion yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -5327,7 +5327,7 @@ stylelint-config-standard@^34.0.0:
dependencies:
stylelint-config-recommended "^13.0.0"

stylelint@^15.10.3:
stylelint@^15.11.0:
version "15.11.0"
resolved "https://registry.yarnpkg.com/stylelint/-/stylelint-15.11.0.tgz#3ff8466f5f5c47362bc7c8c9d382741c58bc3292"
integrity sha512-78O4c6IswZ9TzpcIiQJIN49K3qNoXTM8zEJzhaTE/xRTCZswaovSEVIa/uwbOltZrk16X4jAxjaOhzz/hTm1Kw==
Expand Down

0 comments on commit a126b56

Please sign in to comment.