Tulir Asokan
78aea00999
format/htmlparser: collapse spaces when parsing html
Go / Lint (latest) (push) Waiting to run
Go / Build (old, libolm) (push) Waiting to run
Go / Build (latest, libolm) (push) Waiting to run
Go / Build (old, goolm) (push) Waiting to run
Go / Build (latest, goolm) (push) Waiting to run
2025-08-10 23:23:15 +03:00
Tulir Asokan
7bd136196d
format/htmlparser: don't add link suffix if plaintext is only missing protocol
...
Auto-linkification will add a protocol in the `href`, but usually won't touch
the text part. We want to undo the linkification here since it doesn't carry
any additional information.
2025-07-29 17:24:01 +03:00
Tulir Asokan
287899435d
format: add method to quote string in markdown inline code
2025-04-28 00:59:06 +03:00
Tulir Asokan
60e14d7dff
format: parse task list html
Go / Lint (latest) (push) Waiting to run
Go / Build (old, libolm) (push) Waiting to run
Go / Build (latest, libolm) (push) Waiting to run
Go / Build (old, goolm) (push) Waiting to run
Go / Build (latest, goolm) (push) Waiting to run
2025-04-13 22:45:51 +03:00
Tulir Asokan
b72caa948c
format/htmlparser: keep <> when converting links without text
Go / Lint (latest) (push) Waiting to run
Go / Build (old, libolm) (push) Waiting to run
Go / Build (latest, libolm) (push) Waiting to run
Go / Build (old, goolm) (push) Waiting to run
Go / Build (latest, goolm) (push) Waiting to run
2025-02-26 22:56:39 +02:00
Tulir Asokan
83e60efa15
format: add markdown renderer for custom emojis
Go / Lint (latest) (push) Has been cancelled
Go / Build (old, libolm) (push) Has been cancelled
Go / Build (latest, libolm) (push) Has been cancelled
Go / Build (old, goolm) (push) Has been cancelled
Go / Build (latest, goolm) (push) Has been cancelled
2024-11-02 13:44:51 +02:00
Tulir Asokan
013afd06d3
format/htmlparser: convert math to just latex
2024-11-02 12:37:50 +02:00
Tulir Asokan
a59d4d7867
format: add support for img tags in HTML parser
Go / Lint (latest) (push) Has been cancelled
Go / Build (old, libolm) (push) Has been cancelled
Go / Build (latest, libolm) (push) Has been cancelled
Go / Build (old, goolm) (push) Has been cancelled
Go / Build (latest, goolm) (push) Has been cancelled
2024-10-26 14:51:59 +03:00
Tulir Asokan
5735ea3420
format: generate m.mentions when parsing markdown
2024-08-09 23:00:38 +03:00
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