Skip to content

Commit

Permalink
Render links in DocumentRenderer
Browse files Browse the repository at this point in the history
  • Loading branch information
emmatown committed Mar 15, 2021
1 parent 3bb4da8 commit d89f1f1
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/gold-months-guess.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@keystone-next/document-renderer': patch
---

Fixed `DocumentRenderer` not rendering links
3 changes: 3 additions & 0 deletions packages-next/document-renderer/src/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -197,6 +197,9 @@ function DocumentNode({
/>
);
}
case 'link': {
return <renderers.inline.link href={node.href as string}>{children}</renderers.inline.link>;
}
}
return <Fragment>{children}</Fragment>;
}
Expand Down

0 comments on commit d89f1f1

Please sign in to comment.