Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Vanilla frontend don't style HTML formatted posts #2943

Open
Aldarone opened this issue Jan 16, 2025 · 2 comments
Open

Vanilla frontend don't style HTML formatted posts #2943

Aldarone opened this issue Jan 16, 2025 · 2 comments
Labels

Comments

@Aldarone
Copy link

Aldarone commented Jan 16, 2025

Steps to reproduce the problem

  1. Write a toot in markdown

  2. Open it on your instance with a Glitch Edition Theme (eldritch.cafe)
    1737018657-vivaldi_qKJnu4ICSF

  3. Open it on your instance with a Vanilla Edition Theme (eldritch.cafe)
    1737018607-vivaldi_jQdkPfYfJC

  4. Open it on a Vanilla instance (piaille.fr)
    1737018695-vivaldi_I06bqGeG7x

Expected behaviour

The toot should look similar on Vanilla instance and on Glitch-soc with a vanilla theme (I tried every Vanilla theme available on my instance, I usually use Tangerine UI)

Actual behaviour

There is no styling of the extra HTML tags (but the markup seems preserved)

Mastodon instance

eldritch.cafe

Mastodon version

v4.3.2+glitch

Browser name and version

Vivaldi 7.0.3495.29 (Stable channel) (64 bits)

Operating system

Windows 10 / Linux Mint

@Aldarone Aldarone added the bug label Jan 16, 2025
@ClearlyClaire
Copy link

I think what happens is upstream transforms the <h1>, <h2>,.. tags to <p><strong>…</strong></p>, for which it has styling.

Glitch-soc, on the other hand, keeps those header tags as-is, but then does not have appropriate styling for them when using the vanilla flavor.

This is a bit awkward, because we want to avoid adding custom code (including styles) to the vanilla flavor, but since we accept more HTML tags, we're lacking specific styling for them.

@Aldarone
Copy link
Author

So maybe we ask @nileane (and other theme developpers) if she's willing to make a glitch version of TangerineUI with styling for the unfiltered tags ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants