UNPKG

@arcgis/core

Version:

ArcGIS Maps SDK for JavaScript: A complete 2D and 3D mapping and data visualization API

6 lines (5 loc) 692 B
/* All material copyright ESRI, All Rights Reserved, unless otherwise specified. See https://js.arcgis.com/4.33/esri/copyright.txt for details. */ let t;const e=["blockquote","html","hr","checkbox","table","tablerow","tablecell","image"];async function n(e){return t||await r(),t.parse(e)}async function r(){const{Marked:n}=await import("marked"),r=function({text:t}){return`<span style="text-decoration:line-through;">${t}</span>`},a=function({href:t,text:e,title:n}){return`<a${null!=t?` href="${t}"`:""}${null!=n?` title="${n}"`:""} target="_blank">${e??""}</a>`},l=()=>"",o={};for(const t of e)o[t]=l;t=new n({renderer:{del:r,link:a,...o}})}export{n as compileTextElementMarkdownToHTML};