fix: space

This commit is contained in:
Liu Jiangyi
2020-06-22 22:53:39 +08:00
parent 949cd0d80c
commit 5c294acd40

View File

@@ -140,7 +140,9 @@ export class HighlightedMarkdown extends Component {
</>
)
} else {
const renderedMarkdown = renderMd((props.author || '') + props.text)
let rawMd = props.text
if (props.author) rawMd = props.author + ' ' + rawMd
const renderedMarkdown = renderMd(rawMd)
return parser.parseWithInstructions(renderedMarkdown, node => node.type !== 'script', processInstructions)
}
}