Do not parse URLs in LinkPart

This commit is contained in:
Danila Fedorin 2021-08-27 16:57:31 -07:00
parent dbce6285d9
commit e5da97fbdf

View file

@ -122,14 +122,10 @@ export class PillPart {
}
export class LinkPart {
constructor(url, inlines) {
constructor(url, inlines, internal = false) {
this.url = url;
this.inlines = inlines;
if (url.startsWith("matrix:")) {
this.matrixUrl = new MatrixURL(url);
} else {
this.matrixUrl = null;
}
this.internal = internal;
}
get type() { return "link"; }