diff --git a/src/parseMarkdown.js b/src/parseMarkdown.js index 441d10ec4..fdd2be887 100644 --- a/src/parseMarkdown.js +++ b/src/parseMarkdown.js @@ -14,7 +14,8 @@ export default async function parseMarkdown(markdown) { const imgMatch = content.match(']*>'); const img = imgMatch ? imgMatch[1] : null; let intro = []; - for (let introMatch of content.matchAll(']*>([^<]+)

')) { + + for (let introMatch of content.matchAll(/]*>(.+?)<\/p>/gms)) { const p = introMatch[1].replace(/(<([^>]+)>)/ig, '').replace(/\s+/g, ' '); intro = [...intro, ...p.split(' ')]; }