Commit graph

22 commits

Author SHA1 Message Date
Tulir Asokan
423d32ddf6 Add real context to HTML parser context struct 2024-04-13 13:57:30 +03:00
Tulir Asokan
4c4238b61f Properly form multi-backtick inline code if code contains backticks 2023-01-27 22:47:19 +02:00
Tulir Asokan
fc6cec1b39 Add some actual context in HTML parser Context 2023-01-27 22:47:19 +02:00
Tulir Asokan
a9a2772689 Add safety for negative indexes in HTML parser 2023-01-15 15:55:37 +02:00
Tulir Asokan
28fbb3851d Fix parsing ordered lists that start at zero 2023-01-15 15:42:14 +02:00
Tulir Asokan
5bc36b2978 Add spoiler and color support to HTMLParser 2022-05-29 15:31:39 +03:00
Tulir Asokan
fab91e2b89 Allow mutating text in HTMLParser 2022-05-29 15:16:35 +03:00
Tulir Asokan
d98d1a815d Remove extra newline after paragraphs
Hopefully it's not needed
2021-08-17 01:28:14 +03:00
Tulir Asokan
75a369f590 Add default PillConverter in HTMLParser 2021-06-16 11:31:49 +03:00
Tulir Asokan
2d9dd44b06 Add generic matrix: URI and matrix.to URL parsing
Closes #34
2021-06-08 16:23:46 +03:00
Tulir Asokan
1d493502a1 Fix HTML parser adding extra newline at the end of code blocks 2020-09-04 18:18:29 +03:00
Tulir Asokan
2c882a33ba Allow storing additional context in HTMLParser result 2020-07-31 14:28:26 +03:00
Tulir Asokan
e8300832e9 Add more tests and comments 2020-04-19 14:54:49 +03:00
Tulir Asokan
8adcd0da97 Reorganize and break everything 2020-04-16 16:51:32 +03:00
Tulir Asokan
8101f052c7 Add default code block converter for html parser 2020-03-20 13:34:20 +02:00
Tulir Asokan
97524879c6 Add default monospace converter for html parser 2020-03-20 13:26:46 +02:00
Tulir Asokan
3e27638f3f Don't duplicate link when a href is same as text. Fixes tulir/mautrix-whatsapp#62 2019-05-16 00:51:09 +03:00
Tulir Asokan
53c7c9d954 Add support for horizontal lines in HTML parser 2019-04-10 22:47:50 +03:00
Tulir Asokan
5794ed3674 Improve markdown parser and other things 2019-03-28 23:27:57 +02:00
Tulir Asokan
7e32bf681c Fix blackfriday dep 2018-12-22 21:36:49 +02:00
Tulir Asokan
8154c462e1 Rename package 2018-10-08 01:22:27 +03:00
Tulir Asokan
a6fa3ede98 Add HTML -> text/markdown and Markdown -> HTML converters 2018-08-24 00:53:13 +03:00