Add prefix and suffix text to make text matching work
This commit is contained in:
committed by
Hongbo Wu
parent
c0d5d12ec0
commit
7b79af481f
@ -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>
|
||||
`
|
||||
|
||||
Reference in New Issue
Block a user