matrix-org / matrix-org/matrix-spec

Support for center-aligning elements in HTML messages.

Open
#406 4 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

A-Client-Server enhancement
Dominant language
HTML
Stars
330
Forks
150
Avg merge
2h 21m
Merged PRs (30d)
3

Description

It feels like a big omission that we have zero control currently over positioning content (e.g. images) in messages currently, when constructing longer messages (such as the description of a group).

Github for instance allows you to center images & branding etc with tricks like:

```md
### Sublime's custom image


Sublime's custom image


```

in the markdown.

Should we support the removed-in-HTML5 `align` attribute, and/or add a `data-mx-align` attribute a bit like `data-mx-color` to give this flexibility?

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

The issue names no file, test, or entry point. Review the Matrix specification's HTML message-formatting rules and the discussion, then determine whether alignment should be standardized and what exact syntax and rendering behavior would constitute completion.

Written by the indexing model from the issue text.

Assessment

Tech stack
html
Domain
documentation, web-dev
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.