Skip to content

Commit

Permalink
pkg: Update rehype-highlight to v7 (#2813)
Browse files Browse the repository at this point in the history
* pkg: Update `rehype-highlight` to v7

* pkg: Update breaking changes for rehype

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Nathaniel Tucker <[email protected]>
  • Loading branch information
renovate[bot] and ntucker authored Sep 12, 2023
1 parent ae0e03a commit c9c4b40
Show file tree
Hide file tree
Showing 4 changed files with 181 additions and 59 deletions.
234 changes: 178 additions & 56 deletions examples/github-app/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion examples/github-app/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@
"react-dom": "18.2.0",
"react-error-boundary": "^4.0.0",
"react-markdown": "8.0.7",
"rehype-highlight": "6.0.0",
"rehype-highlight": "7.0.0",
"remark-gfm": "^3.0.1",
"remark-remove-comments": "^1.0.1",
"uuid": "^9.0.0"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ function CommentInline({ comment }: { comment: Comment }) {
) : (
<Markdown
remarkPlugins={[remarkRemoveComments, remarkGfm]}
rehypePlugins={[rehypeHighlight]}
rehypePlugins={[rehypeHighlight()]}
>
{comment.body}
</Markdown>
Expand Down
2 changes: 1 addition & 1 deletion examples/github-app/src/pages/IssueDetail/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ function IssueDetail({ number, repo, owner }: Props) {
>
<Markdown
remarkPlugins={[remarkRemoveComments, remarkGfm]}
rehypePlugins={[() => rehypeHighlight({ ignoreMissing: true })]}
rehypePlugins={[rehypeHighlight()]}
>
{issue.body}
</Markdown>
Expand Down

0 comments on commit c9c4b40

Please sign in to comment.