mirror of
https://github.com/kremalicious/blog.git
synced 2024-12-22 17:23:50 +01:00
fix changelog parsing
This commit is contained in:
parent
e0585386fb
commit
4bb01438c1
1
src/@types/node_modules.d.ts
vendored
1
src/@types/node_modules.d.ts
vendored
@ -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
|
||||||
|
@ -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`
|
||||||
|
Loading…
Reference in New Issue
Block a user