@arcgis/core
Version:
ArcGIS Maps SDK for JavaScript: A complete 2D and 3D mapping and data visualization API
3 lines (2 loc) • 608 B
JavaScript
/* COPYRIGHT Esri - https://js.arcgis.com/5.0.8/LICENSE.txt */
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};