Skip to content

Commit

Permalink
🧱 Respect visibility: remove on blocks
Browse files Browse the repository at this point in the history
  • Loading branch information
fwkoch committed Nov 9, 2023
1 parent c4f154d commit 92dc75d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/clean-ears-allow.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@myst-theme/site': patch
---

Respect visibility: remove on blocks
2 changes: 1 addition & 1 deletion packages/site/src/components/ContentBlocks.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ export function ContentBlocks({
const blocks = mdast.children as GenericParent[];
return (
<>
{blocks.map((node) => (
{blocks.filter((node) => node.visibility !== 'remove').map((node) => (
<Block key={node.key} id={node.key} pageKind={pageKind} node={node} className={className} />
))}
</>
Expand Down

0 comments on commit 92dc75d

Please sign in to comment.