Autoreformat all the things

This commit is contained in:
Pieter Vander Vennet 2022-01-18 18:52:42 +01:00
parent bfcbbdaf70
commit 25f956c808
309 changed files with 548 additions and 556 deletions

View file

@ -53,17 +53,17 @@ export default class Img extends BaseUIElement {
}
return el;
}
AsMarkdown(): string {
if(this._rawSvg === true){
if (this._rawSvg === true) {
console.warn("Converting raw svgs to markdown is not supported");
return undefined
}
let src = this._src
if(this._src.startsWith("./")){
src = "https://mapcomplete.osm.be/"+src
if (this._src.startsWith("./")) {
src = "https://mapcomplete.osm.be/" + src
}
return "![]("+src+")";
return "![](" + src + ")";
}
}