render markdown code element

This commit is contained in:
codetypes committed 2024-07-12 23:43:30 +08:00
1 parent c1fbfbc8fa
commit 5b249c14c8
5 files changed
+16 -7

No files matched your search

+2 -2
View File
@@ -291,7 +291,7 @@ const NodeInspector: FC = () => {
}}
/>
</Form.Item>
<Markdown>{def.doc}</Markdown>
<Markdown className="b3-markdown">{def.doc}</Markdown>
{def.input && def.input.length > 0 && (
<>
<Divider orientation="left">
@@ -476,7 +476,7 @@ const NodeDefInspector: FC = () => {
>
<TextArea autoSize disabled={true} />
</Form.Item>
<Markdown>{data.doc}</Markdown>
<Markdown className="b3-markdown">{data.doc}</Markdown>
{data.input && data.input.length > 0 && (
<>
<Divider orientation="left">
+9
View File
@@ -192,3 +192,12 @@ body {
.b3-editor-filter-selected {
background-color: var(--b3-color-selected) !important;
}
code {
background-color: #6e768166;
border-radius: 6px;
padding: 3px 6px;
margin: 0 3px;
white-space: break-spaces;
box-sizing: border-box;
}