aboutsummaryrefslogtreecommitdiff
path: root/src/lib/Markdown/Content.tsx
diff options
context:
space:
mode:
authoreug-vs <eug-vs@keemail.me>2020-04-05 22:06:54 +0300
committereug-vs <eug-vs@keemail.me>2020-04-05 22:06:54 +0300
commit828946eb02bdfaa7ec5631f1e854881f874f7b7e (patch)
treea34e88a752ce49965433a1794f660a1e46c30747 /src/lib/Markdown/Content.tsx
parent09f8c6865fb9a7e239cc907e313db44cccb7b5e8 (diff)
downloadreact-benzin-828946eb02bdfaa7ec5631f1e854881f874f7b7e.tar.gz
refactor: rename InlineSyntax -> SyntacticSpan
Diffstat (limited to 'src/lib/Markdown/Content.tsx')
-rw-r--r--src/lib/Markdown/Content.tsx3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/lib/Markdown/Content.tsx b/src/lib/Markdown/Content.tsx
index e27b63f..caac91c 100644
--- a/src/lib/Markdown/Content.tsx
+++ b/src/lib/Markdown/Content.tsx
@@ -2,7 +2,6 @@ import React from 'react';
import CodeBlock from './CodeBlock';
import Text from './Text';
-import InlineSyntax from './InlineSyntax';
import { ParserPropTypes } from './types';
@@ -44,7 +43,7 @@ const Content: React.FC<ParserPropTypes> = ({ rawLines }) => {
const closeIndex = rawLines.findIndex(line => !denotesDottedList(line));
const dottedListLines = rawLines.splice(0, closeIndex).slice(0, closeIndex);
dottedListLines.unshift(line);
- buffer = <ul>{dottedListLines.map(li => <li><InlineSyntax line={li} /></li>)}</ul>;
+ buffer = <ul>{dottedListLines.map(li => <li><Text line={li.slice(2)} /></li>)}</ul>;
} else if (denotesOpenHtml(line)) {
const tag = denotesOpenHtml(line);
const closeIndex = rawLines.findIndex(line => denotesClosingHtml(line, tag));