Add prefix and suffix text to make text matching work

This commit is contained in:
Jackson Harper
2022-11-21 16:40:17 +08:00
committed by Hongbo Wu
parent c0d5d12ec0
commit 7b79af481f

View File

@ -57,7 +57,13 @@ describe('parsePreparedContent', async () => {
const html = `
<html>
<body>
<span data-omnivore-highlight-start="true"></span>This is some text within the highlight markers<span data-omnivore-highlight-end="true"></span>
<div>
<div id='article-container'>
some prefix text
<span data-omnivore-highlight-start="true"></span>This is some text within the highlight markers<span data-omnivore-highlight-end="true"></span>
some suffix text
</div>
</div>
</body>
</html>
`