From a0aadabaf73e8410290ca25ddc8fbbedfeb49d57 Mon Sep 17 00:00:00 2001 From: Devansh Date: Sun, 1 Dec 2024 15:54:51 +0530 Subject: [PATCH 1/2] Fixed quote markdown --- packages/markups/src/elements/PlainSpan.js | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/packages/markups/src/elements/PlainSpan.js b/packages/markups/src/elements/PlainSpan.js index cc52613c02..5a2dc99a8e 100644 --- a/packages/markups/src/elements/PlainSpan.js +++ b/packages/markups/src/elements/PlainSpan.js @@ -1,7 +1,14 @@ import React from 'react'; import PropTypes from 'prop-types'; -const PlainSpan = ({ contents }) => <>{contents}; +const PlainSpan = ({ contents }) => { + if (contents === '>') { + return ( +
+ ); + } + return <>{contents}; +}; export default PlainSpan; From 6cd93da591f5ab5847ac3a0041b39420a0d9925d Mon Sep 17 00:00:00 2001 From: Devansh Date: Sun, 1 Dec 2024 15:55:29 +0530 Subject: [PATCH 2/2] Formatted with prettier --- packages/markups/src/elements/PlainSpan.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/packages/markups/src/elements/PlainSpan.js b/packages/markups/src/elements/PlainSpan.js index 5a2dc99a8e..62d48504a6 100644 --- a/packages/markups/src/elements/PlainSpan.js +++ b/packages/markups/src/elements/PlainSpan.js @@ -3,9 +3,7 @@ import PropTypes from 'prop-types'; const PlainSpan = ({ contents }) => { if (contents === '>') { - return ( -
- ); + return
; } return <>{contents}; };