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
I needed to show 2 images in one row (2 columns), but it isn't directly possible. Currently, content in columns is rendered as individual rows. I figured out a way to show it in columns as how it is shown in Notion.
n2m.setCustomTransformer("column_list",async(block)=>{constmdBlocks=awaitn2m.pageToMarkdown(block.id);constmdString=n2m.toMarkdownString(mdBlocks);return` <div style='display:"flex";column-gap:"10px"'>${mdString} </div> `;});n2m.setCustomTransformer("column",(block)=>{// avoid rendering it twicereturn"";});
I thought of sharing it in case others are looking for same.
The text was updated successfully, but these errors were encountered:
I needed to show 2 images in one row (2 columns), but it isn't directly possible. Currently, content in columns is rendered as individual rows. I figured out a way to show it in columns as how it is shown in Notion.
I thought of sharing it in case others are looking for same.
The text was updated successfully, but these errors were encountered: