Skip to content

Commit

Permalink
Support quote blocks (#41)
Browse files Browse the repository at this point in the history
  • Loading branch information
gschier authored Sep 28, 2023
1 parent c9b6f9c commit ef12d51
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions components/RenderBlock.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,15 @@ export const RenderBlock: React.FC<Props> = ({ block }) => {
</p>
)
}
// @ts-ignore: Current client version does not support `quote` but API does
case "quote": {
// const { source, caption } = getMediaProperties(value)
return (
<blockquote className="flex flex-col my-8 border-l-4 pl-4 border-gray-100 text-gray-700 italic">
<NotionText text={value.text} />
</blockquote>
)
}
case "heading_1":
case "heading_2":
case "heading_3": {
Expand Down

0 comments on commit ef12d51

Please sign in to comment.