Support matrix: uris
This commit is contained in:
parent
6209982110
commit
50103301d6
3 changed files with 33 additions and 33 deletions
|
|
@ -41,9 +41,9 @@ class Html extends ConsumerWidget {
|
|||
"blockquote" => Quoted(Html(element.innerHtml, client: client)),
|
||||
|
||||
"a" =>
|
||||
Uri.tryParse(element.attributes["href"] ?? "")?.host == "matrix.to"
|
||||
? InlineCustomWidget(child: MentionChip(element.text))
|
||||
: null,
|
||||
element.attributes["href"]?.parseIdentifierIntoParts() == null
|
||||
? null
|
||||
: InlineCustomWidget(child: MentionChip(element.text)),
|
||||
|
||||
"img" =>
|
||||
element.attributes["src"] == null
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue