Commit Graph

13 Commits

Author SHA1 Message Date
Abdullah Atta
205373dca3 core: use htmlparser2 for html rewriting
This replaces DOMParser with htmlparser2 which is much, much faster.
How much faster? 80%. This new implementation can parse at 50mb/s
which is insane! The old one could only do 5-10mb/s

We still haven't gotten rid of the DOMParser though since HTML-to-MD
conversion still needs it. This will be done soon though by using `dr-sax`.

This uses a custom implementation of htmlparser2 instead of the default
one which is 50% faster.
2022-11-10 15:16:13 +05:00
Abdullah Atta
d81f5dba65 refactor: migrate to theme-ui from rebass 2022-08-31 07:26:27 +05:00
Abdullah Atta
c317774c8a docs: add license header 2022-08-30 16:17:04 +05:00
thecodrr
0a05ec3cbd fix: use DOMParser from globalThis 2022-07-15 09:42:30 +05:00
thecodrr
383bdb1c8f fix: input.includes is not a function 2022-07-07 18:39:57 +05:00
thecodrr
e072d74483 fix: use linkedom/worker 2022-06-08 10:56:53 +05:00
thecodrr
ad10b6c98d feat: use linkedom 2022-04-19 00:28:42 +05:00
thecodrr
c9c57d87ab feat: migrate to happy-dom from node-html-parser 2022-04-19 00:04:57 +05:00
thecodrr
0a75048f68 fix: decode   html5 escape codes 2022-01-20 00:18:35 +05:00
thecodrr
3309b3d643 feat: simplify note title & headline extraction 2021-12-16 10:10:00 +05:00
thecodrr
7d4edab92b fix: HTMLParser.createElement is not a function 2021-12-09 00:36:16 +05:00
thecodrr
fda5e0c84b fix: do not automatically delete empty notes 2021-12-08 19:32:58 +05:00
thecodrr
92a8239899 feat: migrate to node-html-parser 2021-11-25 09:46:45 +05:00