48 Commits

Author SHA1 Message Date
113b87c8c8 count div as newline 2026-04-15 09:22:00 +00:00
alex wennerberg
97a1194cb1 Fix whitespace bug 2026-02-14 13:29:52 -08:00
alex wennerberg
8d57ec3524 Fix entity bug 2024-10-08 10:27:18 -04:00
alex wennerberg
cc8b9b0210 A ton of changes
Someone emailed me a patch with a lot of improvements here
2024-10-03 21:27:45 -04:00
alex wennerberg
9c7a627e3f update crate 2024-09-28 00:15:58 -04:00
alex wennerberg
7f97665afb Rename README 2024-01-19 21:13:01 -05:00
alex wennerberg
01cb16a240 update readme 2024-01-13 22:34:51 -05:00
alex wennerberg
e7ecde866e bump version 2022-09-24 10:01:07 -07:00
alex wennerberg
334a179f4f update readme in package 2022-09-24 09:59:27 -07:00
alex wennerberg
e97a40575b Update mailing list link 2022-09-24 09:56:55 -07:00
Ayrat Badykov
05fc9a55c8 do not add content if href == content 2022-09-24 15:43:54 +03:00
Ayrat Badykov
600ebbe445 parse href along with its content 2022-09-24 14:05:25 +03:00
alex wennerberg
77989212d3 README -> markdown 2022-04-23 23:23:06 -07:00
Ayrat Badykov
10c2a0cbff fix invalid parsing of invalid html entities 2022-04-23 09:12:55 -07:00
alex wennerberg
fd7383cdba Cleanup readme 2022-01-18 12:41:12 -08:00
alex wennerberg
4fab906c7a No longer a line for line rewrite 2022-01-17 10:39:25 -08:00
alex wennerberg
30963daed6 word wrap license 2022-01-17 10:29:42 -08:00
alex wennerberg
215452465e Bump version to v0.1.2
General refactoring, cleanup, tests, and better documentation, thanks to
Johann150
2022-01-12 18:09:09 -08:00
alex wennerberg
1624bd13e6 Remove comment -- this is no longer a line for line rewrite 2022-01-12 18:08:30 -08:00
Johann150
1f678a8621 refactor tests to have meaningful names 2022-01-13 02:05:55 +01:00
Johann150
db479b931e improve API documentation 2022-01-13 02:05:35 +01:00
Johann150
0b0d350243 refactor core parser
Fix some bugs in previously refactored functions.
Change the general processing idea to be "tag oriented" instead of
naively scanning the whole HTML string.
Collapse the cases for different tags that are handled the same.
2022-01-13 02:05:12 +01:00
Johann150
a18add05fb rewrite is_bad_tag with matches! macro
Removing String allocation in iterator.
2022-01-13 00:12:02 +01:00
Johann150
00a9b04d90 make several functions more concise
Make more use of try operator and standard library functions.
Do not operate on bytes directly.
2022-01-13 00:11:49 +01:00
Johann150
6e3fd37e73 clean up decode_named_entity
Update the code style to current Rust.
Add the proper license notice to the entity.rs file.
2022-01-12 22:19:57 +01:00
Johann150
f5f435a8c5 format entities list with cargo fmt 2022-01-12 21:50:27 +01:00
alex wennerberg
411c937643 Fix plaintext readme for crates.io 2022-01-08 17:17:12 -08:00
alex wennerberg
338b29b427 update contributing 2022-01-08 17:09:40 -08:00
alex wennerberg
8df0711d3d edit readme 2022-01-06 21:08:56 -08:00
alex wennerberg
07b0167d82 Update README 2022-01-06 10:56:53 -08:00
alex wennerberg
dbe0b94cf0 compiler warning 2022-01-06 10:52:07 -08:00
alex wennerberg
c6a3aaf9bb Update cargo.toml for publication 2022-01-06 10:51:26 -08:00
alex wennerberg
d3806f8c0d Allow unicode URLs 2022-01-06 10:46:10 -08:00
alex wennerberg
4ebd7362e7 notes 2022-01-06 10:43:24 -08:00
alex wennerberg
551c9b358f add contributing instructions 2022-01-06 10:36:08 -08:00
alex wennerberg
49be4908ba I think this is a bug fix 2022-01-06 10:13:41 -08:00
alex wennerberg
9ed16fa569 move src/main to src/lib, fix bugs 2022-01-06 09:59:52 -08:00
alex wennerberg
8635c8ea65 Add license 2022-01-06 09:38:50 -08:00
alex wennerberg
33155bbb0d Update readme 2022-01-06 09:37:59 -08:00
alex wennerberg
4ac6a10738 bad tag bug fix 2022-01-06 09:36:38 -08:00
alex wennerberg
72f8d61867 fix html entity parsing 2022-01-06 08:54:59 -08:00
alex wennerberg
39d3f5d6a5 Add link support 2022-01-06 08:39:51 -08:00
alex wennerberg
0f96420abb Extend and add unit tests 2022-01-05 10:12:49 -08:00
alex wennerberg
5e2fb2cc82 Add numeric entity parsing 2022-01-04 07:54:58 -08:00
alex wennerberg
c6368a4906 add entity encoding/decoding 2022-01-03 12:58:30 -08:00
alex wennerberg
b65548e2ca rewriting more code 2022-01-03 09:57:11 -08:00
alex wennerberg
8ad91b23d6 Update README, get started 2022-01-03 08:57:38 -08:00
alex wennerberg
06549d688c Initial commit 2021-12-19 08:55:34 -08:00