From 752d13c3565b7a0190e13a2bac6d7528c650f16b Mon Sep 17 00:00:00 2001 From: Suraj Air Date: Wed, 1 May 2024 18:14:11 +0530 Subject: [PATCH] feat: v1.0.7 & Text block handling --- package.json | 2 +- src/package/default-blocks/text.tsx | 8 ++++++-- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/package.json b/package.json index 113f174..eb0d36b 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "@chaibuilder/runtime", "private": false, - "version": "0.1.6", + "version": "0.1.7", "type": "module", "author": "Suraj Air", "license": "BSD-3-Clause", diff --git a/src/package/default-blocks/text.tsx b/src/package/default-blocks/text.tsx index 2e3a2b0..85aa890 100644 --- a/src/package/default-blocks/text.tsx +++ b/src/package/default-blocks/text.tsx @@ -11,9 +11,13 @@ const RawTextBlock = ( }, ) => { if (props.inBuilder) { - return  {props.content} ; + return ( + + {props.content} + + ); } - return ` ${props.content} `; + return `${props.content}`; }; registerChaiBlock(RawTextBlock, {