mirror of
https://github.com/ThatGuySam/doesitarm.git
synced 2026-05-18 06:44:46 -07:00
Fix issue with splitting link dashes
This commit is contained in:
parent
b145d83a8c
commit
67826885c7
1 changed files with 2 additions and 2 deletions
|
|
@ -85,8 +85,8 @@ export default async function () {
|
|||
}
|
||||
|
||||
|
||||
if ( isParagraph && token.type === 'inline' && token.content.includes('-') ) {
|
||||
const [ link, text ] = token.content.split('-').map(string => string.trim())
|
||||
if ( isParagraph && token.type === 'inline' && token.content.includes(' - ') ) {
|
||||
const [ link, text ] = token.content.split(' - ').map(string => string.trim())
|
||||
|
||||
const relatedLinks = getTokenLinks(token.children)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue