Titles in messages (h# tags) are not styled
When a message contains HTML titles (text inside <h#>
tags, where #
is the level of the title), the title is not rendered as such, it appears as normal text.
Steps to reproduce
- Open Fractal
- Enter a room
- Make sure Markdown is activated
- Send a message with a paragraph with one of the title prefixes (between 1 and 6
#
) - Notice that the title is rendered the same as any message.
This is the result:
Information
-
This bug is reproducible from the latest nightly build - Fractal Version: Nightly 5.beta1-dc66180a
- OS Version: Fedora 38 Silverblue
- Installation Source: Nightly Flatpak
- Homeserver: N/A
Looking at the code it simply seems that we set a CSS class of h#
(where #
is the same level as the HTML tag) but we don't handle those classes so it must never have worked.
Edited by Kévin Commaille