From 4bb01438c121ae112a7c4fb5b378504e27f3bb98 Mon Sep 17 00:00:00 2001 From: Matthias Kretschmann Date: Sat, 4 Apr 2020 10:55:41 +0200 Subject: [PATCH] fix changelog parsing --- src/@types/node_modules.d.ts | 1 + src/components/atoms/Changelog.tsx | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/@types/node_modules.d.ts b/src/@types/node_modules.d.ts index 672b0a46..aa1141be 100644 --- a/src/@types/node_modules.d.ts +++ b/src/@types/node_modules.d.ts @@ -2,6 +2,7 @@ declare module 'pigeon-maps' declare module 'pigeon-marker' declare module 'react-blockies' declare module 'remark-react' +declare module 'unified' declare module 'ethereum-blockies' { export function toDataUrl(address: string): string diff --git a/src/components/atoms/Changelog.tsx b/src/components/atoms/Changelog.tsx index a6ad4176..949b3400 100644 --- a/src/components/atoms/Changelog.tsx +++ b/src/components/atoms/Changelog.tsx @@ -24,7 +24,7 @@ export function PureChangelog({ const { object, url, owner } = repoMatch const changelogHtml = - object && remark().use(remarkReact).processSync(object.text).contents + object && remark().use(remarkReact).processSync(object.text).result const filePathUrl = `${url}/tree/master/CHANGELOG.md` const filePathDisplay = `${owner.login}/${repo}:CHANGELOG.md`