Skip to content

Commit

Permalink
fix: add default components.listItem.menu component
Browse files Browse the repository at this point in the history
  • Loading branch information
theisel committed Oct 31, 2022
1 parent 7391ef3 commit 4f194e6
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/yellow-doors-cheat.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"astro-portabletext": patch
---

Fixes missing `components.listItem.menu` default component
1 change: 1 addition & 0 deletions astro-portabletext/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@ import { PortableText } from "astro-portabletext";
listItem: {
bullet: /* <li {...attrs}><slot /></li> */,
number: /* <li {...attrs}><slot /></li> */,
menu: /* <li {...attrs}><slot /></li> */,
},
mark: {
code: /* <code {...attrs}><slot /></code> */,
Expand Down
1 change: 1 addition & 0 deletions astro-portabletext/components/PortableText.astro
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@ const components = mergeComponents(
listItem: {
bullet: ListItem,
number: ListItem,
menu: ListItem,
},
unknownListItem: UnknownListItem,
mark: {
Expand Down

0 comments on commit 4f194e6

Please sign in to comment.