1
0
mirror of https://github.com/kremalicious/blog.git synced 2024-12-22 09:13:35 +01:00

fix changelog parsing

This commit is contained in:
Matthias Kretschmann 2020-04-04 10:55:41 +02:00
parent e0585386fb
commit 4bb01438c1
Signed by: m
GPG Key ID: 606EEEF3C479A91F
2 changed files with 2 additions and 1 deletions

View File

@ -2,6 +2,7 @@ declare module 'pigeon-maps'
declare module 'pigeon-marker' declare module 'pigeon-marker'
declare module 'react-blockies' declare module 'react-blockies'
declare module 'remark-react' declare module 'remark-react'
declare module 'unified'
declare module 'ethereum-blockies' { declare module 'ethereum-blockies' {
export function toDataUrl(address: string): string export function toDataUrl(address: string): string

View File

@ -24,7 +24,7 @@ export function PureChangelog({
const { object, url, owner } = repoMatch const { object, url, owner } = repoMatch
const changelogHtml = 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 filePathUrl = `${url}/tree/master/CHANGELOG.md`
const filePathDisplay = `${owner.login}/${repo}:CHANGELOG.md` const filePathDisplay = `${owner.login}/${repo}:CHANGELOG.md`