Parse marker shortcodes (WIP)

This commit is contained in:
2025-10-24 10:27:28 +02:00
parent 00cedfeb85
commit 952dc3f841
4 changed files with 31 additions and 3 deletions

View File

@@ -1,3 +1,4 @@
import Utils from "./utils.js";
/**
* Component to render data for site sheet
* @class SiteSheet
@@ -60,6 +61,9 @@ export class SiteSheet {
}
renderShort() {
// TEST
const shortDesc = Utils.parseMarkers(this._siteData.shortDescription);
return `
<div class="container p-3">
<p class="p-2">
@@ -81,7 +85,7 @@ export class SiteSheet {
<strong>Località generica:</strong> ${this._siteData.genericPlace}
</p>
<p class="mt-4 pl-2 pr-5">
${this._siteData.shortDescription}
${shortDesc}
</p>
<p class="mt-4 pl-2 pr-5">
<span class="icon has-text-link">