Do not parse URLs in LinkPart
This commit is contained in:
parent
dbce6285d9
commit
e5da97fbdf
1 changed files with 2 additions and 6 deletions
|
@ -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"; }
|
||||
|
|
Reference in a new issue