-
|
Getting this error: Indeed, it is from a I tried adding I've attached an example HTML that throws this error. index_html.txt Any ideas for a workaround? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 3 replies
-
|
I also tried adding |
Beta Was this translation helpful? Give feedback.
-
|
Immediately after typing that I realized that |
Beta Was this translation helpful? Give feedback.
Unfortunately there is no current way around that — Pagefind parses HTML using the https://github.com/cloudflare/lol-html library, and that error there is a parsing error passed through directly from that library. Since the HTML document itself is failing to parse, it isn't possible for Pagefind to select down to adata-pagefind-bodyor anything.Immediately after typing that I realized that
lol-htmlcan be initialized withstrict: falseto continue in the face of these parsing ambiguities. Since indexing pages for search isn't a security risk, I'll disable strict mode for Pagefind 🙌