29 Commits

Author SHA1 Message Date
Kévin Commaille
9e9b59819c chore: Fix links to rich reply fallback section
Since they were remove in Matrix 1.13, the section was removed and the information is now in an info box.
2025-01-02 18:42:32 -05:00
Kévin Commaille
13a546056e chore: Remove unnecessary lifetimes 2024-11-29 17:45:04 -05:00
Kévin Commaille
f0b76f2295 chore: Mention Matrix 1.12 in changelog 2024-10-19 14:59:11 -04:00
Jonas Platte
9f8cdecae6
Upgrade outdated dependencies 2024-09-29 10:42:39 +02:00
Jonas Platte
1a138ed6c9 Use workspace lint configuration instead of rustflags hack 2024-09-11 07:13:32 +00:00
Kévin Commaille
88f56b0e00 html: Upgrade html5ever
Requires a complete change of the HTML tree, to have interior mutability
and be able to return borrowed data from a Handle.
It is now a Rc-based tree where each node has a weak reference to
its parent and strong references to its children.

This results ina few breaking changes to the public API.
2024-09-07 09:56:02 +02:00
Kévin Commaille
d568d579ad html: Remove support for name attribute
According to MSC4159.
2024-09-06 09:21:24 +02:00
Kévin Commaille
002fe2fb3d html: Add support for mathematical messages
According to MSC2191 / Matrix 1.11
2024-06-22 11:00:18 +02:00
Jonas Platte
d91e6d7e63
Simplify docsrs feature usage
- Don't instruct docs.rs to set it, it does so by default now:
  https://github.com/rust-lang/docs.rs/pull/2390
- Because of that, check-cfg also recognizes it and does not need
  extra configuration either.
2024-05-30 10:35:07 +02:00
Kévin Commaille
2b46250c8b
Release ruma-html 0.2.0 2024-05-09 12:31:49 +02:00
Kévin Commaille
b6dcb421bf html: Re-export html5ever types used in our public API 2024-05-06 14:56:53 +02:00
Kévin Commaille
bd56071587 html: Add more settings to SanitizerConfig
Allows to use it with a whitelist or a blacklist,
and extend or reduce the lists from the Matrix spec.
2024-05-06 14:56:53 +02:00
Kévin Commaille
e161a57eda html: Add HTML data types for elements and attributes suggested by Matrix Spec 2024-05-06 14:56:53 +02:00
Kévin Commaille
18244143ca html: Take a reference to SanitizerConfig for Html::sanitize_with
Allows to reuse the configuration without cloning it.
2024-05-06 14:56:53 +02:00
Kévin Commaille
6e763ee5e7 html: Allow to navigate through the HTML tree 2024-04-24 13:15:12 +02:00
Kévin Commaille
d36f485b19 html: Do not export Node in the public API
It is not usable on its own and it is
not in the output of any public method.
2024-04-24 13:15:12 +02:00
Kévin Commaille
221e9c055c html: Add method to get root node of Html 2024-04-24 13:15:12 +02:00
Kévin Commaille
da1df75619 html: Add support for deprecated HTML tags
According to Matrix 1.10
2024-04-07 15:45:26 +02:00
Kévin Commaille
5a0faa81b1 html: Upgrade html5ever 2024-04-07 15:45:26 +02:00
Jonas Platte
4a02b97aa3
Update website URL 2024-04-04 13:20:58 +02:00
Jonas Platte
db06702a0f
ci: Upgrade nightly toolchain 2023-11-08 18:03:26 +01:00
Jonas Platte
e658b8b128
Remove 'www.' from ruma.io URLs 2023-10-12 15:44:00 +02:00
Jonas Platte
b0143702a7
Release ruma-html 0.1.0 2023-10-05 17:06:59 +02:00
Kévin Commaille
e4a46437c9 html: Add note about errors in Html::parse docs 2023-08-29 11:19:48 +02:00
Kévin Commaille
ba973c98f1 html: Expose sanitize API on Html 2023-08-29 11:19:48 +02:00
Kévin Commaille
0120861951 html: Don't expose methods to manipulate HTML
Users should just use the provided way to sanitize HTML
2023-08-29 11:19:48 +02:00
Kévin Commaille
80c71ef454 html: Rename Fragment to Html 2023-08-29 11:19:48 +02:00
Jonas Platte
399adc911f Use as_variant crate for shorter code 2023-08-28 19:31:39 +02:00
Kévin Commaille
24ce9d5e09 events: Move sanitize HTML features to new ruma-html crate 2023-08-24 14:00:07 +02:00