You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
According to the source code, when fullPage prop of NotionRenderer is set to false or left out, both the values of prop className and bodyClassName are added to the wrapper for Notion content.
I can't think of a scenario where this would be useful. Can @transitive-bullshit or anyone else familiar with NotionRenderer give a useful example?
UPDATE
On further research, I think Notion children blocks, rendered to html as <div class="notion-text notion-block-xyz"> should be wrapped inside another <div>.
There are cases when we're only interested in the block content of a page, and providing a middleman layer inside notion-app and but outside above notion-text can help with styling.
The text was updated successfully, but these errors were encountered:
react-notion-x/packages/react-notion-x/src/block.tsx
Line 254 in 015c681
According to the source code, when
fullPage
prop of NotionRenderer is set tofalse
or left out, both the values of propclassName
andbodyClassName
are added to the wrapper for Notion content.Example code:
will be translated to this markup:
I can't think of a scenario where this would be useful. Can @transitive-bullshit or anyone else familiar with NotionRenderer give a useful example?
UPDATE
On further research, I think Notion children blocks, rendered to html as
<div class="notion-text notion-block-xyz">
should be wrapped inside another<div>
.There are cases when we're only interested in the block content of a page, and providing a middleman layer inside
notion-app
and but outside abovenotion-text
can help with styling.The text was updated successfully, but these errors were encountered: