diff --git a/package.json b/package.json index ffb05a1..46c265f 100644 --- a/package.json +++ b/package.json @@ -11,7 +11,7 @@ ], "repository": "https://github.com/themashcodee/slack-blocks-to-jsx.git", "license": "MIT", - "version": "0.5.3", + "version": "0.5.4", "main": "dist/index.js", "module": "dist/index.mjs", "types": "dist/index.d.ts", diff --git a/src/components/blocks/context.tsx b/src/components/blocks/context.tsx index cba819c..25bdaa7 100644 --- a/src/components/blocks/context.tsx +++ b/src/components/blocks/context.tsx @@ -17,17 +17,13 @@ export const Context = (props: ContextProps) => { {elements.slice(0, 10).map((element, i) => { if (element.type !== "image") { return ( - +
- +
); } - return ( - - - - ); + return ; })} ); diff --git a/src/components/blocks/rich_text/rich_text.tsx b/src/components/blocks/rich_text/rich_text.tsx index b024da6..01a70a9 100644 --- a/src/components/blocks/rich_text/rich_text.tsx +++ b/src/components/blocks/rich_text/rich_text.tsx @@ -115,11 +115,11 @@ const Element = (props: ElementProps) => {
{border === 1 &&
} -
+

{elements.map((el, i) => { return ; })} -

+

); } @@ -128,11 +128,11 @@ const Element = (props: ElementProps) => { const { elements } = element; return ( -
+

{elements.map((el, i) => { return ; })} -

+

); } diff --git a/src/utils/markdown_parser/elements/paragraph.tsx b/src/utils/markdown_parser/elements/paragraph.tsx index a33a0ab..55317e7 100644 --- a/src/utils/markdown_parser/elements/paragraph.tsx +++ b/src/utils/markdown_parser/elements/paragraph.tsx @@ -22,7 +22,7 @@ export const Paragraph = (props: Props) => { const { element } = props; return ( - <> +

{element.children.map((subelement, i) => { if (subelement.type === "text") return ; if (subelement.type === "emphasis") return ; @@ -43,6 +43,6 @@ export const Paragraph = (props: Props) => { return null; })} - +

); };