Skip to content

Commit

Permalink
build: upgrade marked to v4
Browse files Browse the repository at this point in the history
  • Loading branch information
monospaced committed Dec 29, 2022
1 parent 401397a commit eca0798
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 7 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
"jest": "^23.6.0",
"kleur": "^3.0.0",
"lighthouse": "^3.2.1",
"marked": "^0.3.19",
"marked": "^4.0.10",
"mini-css-extract-plugin": "^0.5.0",
"optimize-css-assets-webpack-plugin": "^5.0.1",
"postcss-cssnext": "^3.1.0",
Expand Down
2 changes: 1 addition & 1 deletion src/components/Home/Home.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ const Home = ({ data: { about, description, subtitle, title } }) => {
/>
<section>
<Avatar />
<div dangerouslySetInnerHTML={{ __html: marked(about.trim()) }} />
<div dangerouslySetInnerHTML={{ __html: marked.parse(about.trim()) }} />
</section>
</main>
);
Expand Down
4 changes: 3 additions & 1 deletion src/components/Project/Project.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,9 @@ const Project = ({
<h2>
{projectTitle} <small>({date})</small>
</h2>
<div dangerouslySetInnerHTML={{ __html: marked(content.trim()) }} />
<div
dangerouslySetInnerHTML={{ __html: marked.parse(content.trim()) }}
/>
{client && <Client client={client} />}
{link && <Visit project={project} />}
<Screenshot project={project} slug={path} />
Expand Down
8 changes: 4 additions & 4 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -6202,10 +6202,10 @@ map-visit@^1.0.0:
dependencies:
object-visit "^1.0.0"

marked@^0.3.19:
version "0.3.19"
resolved "https://registry.yarnpkg.com/marked/-/marked-0.3.19.tgz#5d47f709c4c9fc3c216b6d46127280f40b39d790"
integrity sha512-ea2eGWOqNxPcXv8dyERdSr/6FmzvWwzjMxpfGB/sbMccXoct+xY+YukPD+QTUZwyvK7BZwcr4m21WBOW41pAkg==
marked@^4.0.10:
version "4.2.5"
resolved "https://registry.yarnpkg.com/marked/-/marked-4.2.5.tgz#979813dfc1252cc123a79b71b095759a32f42a5d"
integrity sha512-jPueVhumq7idETHkb203WDD4fMA3yV9emQ5vLwop58lu8bTclMghBWcYAavlDqIEMaisADinV1TooIFCfqOsYQ==

marky@^1.2.0:
version "1.2.1"
Expand Down

0 comments on commit eca0798

Please sign in to comment.