project-robius / project-robius/robrix

HTML tag support tracker

Open
#63 1 comment 0 reactions 1 assignee View on GitHub

@kevinaboos is already working on this.

Since Apr 9, 2024.

tracking
Dominant language
Rust
Stars
487
Forks
68
Avg merge
1h 22m
Merged PRs (30d)
54

Description

This issue tracks which Html tags are supported (both parsed and displayed fully correctly) in rich Html message content.

For more info, see the list of supported Html tags and attributes in the Matrix spec the newest v1.13 spec's list of supported Html tags and attributes.

  • Headers: h1, h2, h3, h4, h5, h6
  • b, strong: bold
  • i, em: italic/emphasis
  • u: underline
  • del/strike: strikethrough/cross-out
  • p: paragraph
  • hr: horizontal rule, separator
  • br: line break, new line
  • blockquote
  • ul
  • ol
    • start
  • li
  • pre: code blocks
    • class="language-*" for syntax highlighting
      • This is blocked on Makepad's upcoming support for syntax highlighting
  • code: inline code
  • font
    • color
    • data-mx-color
    • data-mx-bg-color
  • span
    • data-mx-bg-color
    • data-mx-color
    • data-mx-spoiler: #274
  • a: hyper links
    • href
      • Note: href value must not be relative, must have a scheme matching one of: https, http, ftp, mailto, magnet
      • web clients should add a `rel="noopener"``attribute
    • name — this is explicitly not supported
    • target — this is explicitly not supported
  • sup
  • sub: is parsed correctly, but doesn't always display properly
  • div: i think this is only used for the new latex math feature (which we need to support in span too)
  • table: implemented by https://github.com/makepad/makepad/pull/1032
    • caption -- a table caption
    • thead -- a table header (the first row, typically column labels)
    • tbody -- a table body (rows that come after the thead table header)
    • tr -- a table row
    • th -- a table column header (the left-most cell in a row)
    • td -- a table data cell
  • img: inline images
    • width
    • height
    • alt
    • title
    • src
  • details: an expandable view that shows a summary when closed and the full content when open.
    • summary: the short content viewable when details is closed.
  • mx-reply: see issue https://github.com/project-robius/robrix/issues/82

Contributor guide

No contributing guide indexed for this repository

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.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.