diff options
| -rw-r--r-- | src/lib/Markdown/Section.tsx | 7 | 
1 files changed, 6 insertions, 1 deletions
| diff --git a/src/lib/Markdown/Section.tsx b/src/lib/Markdown/Section.tsx index 5ce8954..987b771 100644 --- a/src/lib/Markdown/Section.tsx +++ b/src/lib/Markdown/Section.tsx @@ -30,7 +30,12 @@ const Section: React.FC<PropTypes> = ({ rawLines, level = 0 }) => {    const deeperLevelIndex = rawLines.findIndex(line => line.match(`^#{${level + 1},} .*$`));    const rawContent = rawLines.splice(0, (deeperLevelIndex < 0) ? rawLines.length : deeperLevelIndex); -  if (!level) return <ChildrenSections rawLines={rawLines} level={getHeaderLevel(rawLines[0])}/>; +  if (!level) return ( +    <> +      <Content rawLines={rawContent} /> +      <ChildrenSections rawLines={rawLines} level={getHeaderLevel(rawLines[0])}/> +    </> +  )    const sectionName = rawContent.splice(0, 1)[0].slice(level).trim();    const deeperLevel = getHeaderLevel(rawLines[0]); | 
