Tulir Asokan
|
423d32ddf6
|
Add real context to HTML parser context struct
|
2024-04-13 13:57:30 +03:00 |
|
Tulir Asokan
|
9eb38c70ff
|
Fix imports
|
2023-01-29 17:11:30 +02:00 |
|
Tulir Asokan
|
389c738c0f
|
Use reflect for filtering parsers to allow better filtering
|
2023-01-29 17:07:54 +02:00 |
|
Tulir Asokan
|
870a2cfb94
|
Add utility to remove markdown parser features
|
2023-01-27 23:23:24 +02: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
|
cbf22efc94
|
Fix comment
|
2022-07-03 17:56:01 +03: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
|
04789fc73b
|
Refactor RenderMarkdown to be more modular
|
2022-05-29 13:55:58 +03:00 |
|
Tulir Asokan
|
55de611c42
|
Add Discord underline markdown extension
|
2022-05-29 13:47:38 +03:00 |
|
Tulir Asokan
|
e69aeeb4a6
|
Add simple spoiler parser
It doesn't support reasons, but nesting works properly
|
2022-05-29 13:13:54 +03:00 |
|
Tulir Asokan
|
b6f95d2a95
|
Improve paragraph tag removal
|
2022-05-29 12:45:37 +03:00 |
|
Tulir Asokan
|
0eee489b64
|
Switch to /v3 paths everywhere
|
2022-04-17 12:59:34 +03:00 |
|
Tulir Asokan
|
597a9560f7
|
Switch from blackfriday to goldmark to add spoiler support
|
2022-04-15 20:26:27 +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
|
eef0e65458
|
Fix HTML tags being allowed in RenderMarkdown even when allowHTML is false
|
2021-04-29 23:48:43 +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
|
dabb8c5f65
|
Fix newlines in html-only mode of RenderMarkdown
|
2020-08-21 20:41:10 +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
|
f4fc99cddb
|
Overhaul event content representation
|
2020-04-19 03:23:27 +03:00 |
|
Tulir Asokan
|
941515e73d
|
Rename events to event
|
2020-04-16 17:29:47 +03:00 |
|
Tulir Asokan
|
8adcd0da97
|
Reorganize and break everything
|
2020-04-16 16:51:32 +03:00 |
|
Tulir Asokan
|
c81fdd9fe6
|
Add options to RenderMarkdown for disabling markdown and html
|
2020-04-04 01:02:06 +03:00 |
|
Tulir Asokan
|
8ba1d97ed8
|
Export stuff used in markdown rendering
|
2020-03-20 14:31:39 +02: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
|
dfc638ec80
|
Only send HTML if necessary
|
2020-03-01 01:23:21 +02:00 |
|
Tulir Asokan
|
be576ef8fc
|
Remove paragraph tags in RenderMarkdown if message only has one paragraph tag
|
2020-03-01 01:03:54 +02:00 |
|
Tulir Asokan
|
e39c1b9fba
|
Use blackfriday directly from github
|
2020-02-18 20: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
|
c0bec97a8a
|
Change blackfriday import path back to gopkg.in to fix go get
|
2019-05-12 17:28:33 +03:00 |
|
Tulir Asokan
|
53c7c9d954
|
Add support for horizontal lines in HTML parser
|
2019-04-10 22:47:50 +03:00 |
|
Tulir Asokan
|
dd6ea25c39
|
Trim trailing newlines in markdown output
|
2019-04-10 17:17:55 +03:00 |
|
Tulir Asokan
|
0ad616f68d
|
Do some changes
|
2019-04-10 02:29:06 +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
|
920b154a41
|
Format
|
2018-09-20 01:23:41 +03:00 |
|
Tulir Asokan
|
a6fa3ede98
|
Add HTML -> text/markdown and Markdown -> HTML converters
|
2018-08-24 00:53:13 +03:00 |
|