diff --git a/instances/devhub.near/widget/devhub/components/molecule/Compose.jsx b/instances/devhub.near/widget/devhub/components/molecule/Compose.jsx index 5484fe0eb..0ae8c0b62 100644 --- a/instances/devhub.near/widget/devhub/components/molecule/Compose.jsx +++ b/instances/devhub.near/widget/devhub/components/molecule/Compose.jsx @@ -116,11 +116,6 @@ const Compose = ({ src={`${REPL_DEVHUB}/widget/devhub.components.molecule.SimpleMDEViewer`} props={{ content: state.data, - embeddCSS: ` - body{ - font-size:14px; - } - `, }} /> @@ -189,11 +184,6 @@ const Compose = ({ src={`${REPL_DEVHUB}/widget/devhub.components.molecule.SimpleMDEViewer`} props={{ content: state.data, - embeddCSS: ` - body { - font-size: 14px; - } - `, }} /> diff --git a/instances/devhub.near/widget/devhub/components/molecule/SimpleMDEViewer.jsx b/instances/devhub.near/widget/devhub/components/molecule/SimpleMDEViewer.jsx index bdaa0fd25..d5709ac87 100644 --- a/instances/devhub.near/widget/devhub/components/molecule/SimpleMDEViewer.jsx +++ b/instances/devhub.near/widget/devhub/components/molecule/SimpleMDEViewer.jsx @@ -1,139 +1,81 @@ const content = props.content ?? ""; -const height = props.height; const embeddCSS = props.embeddCSS; -const [iframeHeight, setIframeHeight] = useState("100px"); -const code = ` - - - - - - - - - - -
- - - - - `; +const renderMention = + props.renderMention ?? + ((accountId) => ( + + + + )); +const processedContent = content + .replace(//gi, " \n") + .replace(/\n/g, " \n"); return ( -