Fix issue with splitting link dashes

This commit is contained in:
Sam Carlton 2020-09-19 23:50:49 -05:00
parent b145d83a8c
commit 67826885c7

View file

@ -85,8 +85,8 @@ export default async function () {
} }
if ( isParagraph && token.type === 'inline' && token.content.includes('-') ) { if ( isParagraph && token.type === 'inline' && token.content.includes(' - ') ) {
const [ link, text ] = token.content.split('-').map(string => string.trim()) const [ link, text ] = token.content.split(' - ').map(string => string.trim())
const relatedLinks = getTokenLinks(token.children) const relatedLinks = getTokenLinks(token.children)