Skip to content

Commit

Permalink
content blocks list bullet
Browse files Browse the repository at this point in the history
  • Loading branch information
MooKorea committed Oct 27, 2023
1 parent 2183b6f commit 6d69762
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/assets/pages/documentation/Body.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ export default function Body({ initialPage }) {
const type = handleContentBlock(children[0].data);
if (!type) return;
const typeNoSpace = type.replace(" ", "");
return (
const block = (
<div className="block">
<div className={`header ${typeNoSpace}Header`}>
<img src={`/images/${typeNoSpace}Icon.svg`} className="icon" />
Expand All @@ -65,8 +65,9 @@ export default function Body({ initialPage }) {
<p>{domToReact(children, options)}</p>
</div>
);
return name === "li" ? <li>{block}</li> : block
}

//delete block identifier
if (type === "text" && handleContentBlock(data)) {
const type = handleContentBlock(data);
Expand Down

0 comments on commit 6d69762

Please sign in to comment.