import{r as e}from"./ir-DUAIBJ6Y.js";import{t}from"./render-DhTJXP1U.js";const n={bold:{open:`**`,close:`**`},italic:{open:`_`,close:`_`},strikethrough:{open:`~~`,close:`~~`},code:{open:"`",close:"`"},code_block:{open:"```\n",close:"```"}};function r(r,i){if(!r||i===`off`)return r;let{ir:a,hasTables:o}=e(r,{linkify:!1,autolink:!1,headingStyle:`none`,blockquotePrefix:``,tableMode:i});return o?t(a,{styleMarkers:n,escapeText:e=>e,buildLink:(e,t)=>{let n=e.href.trim();return!n||!t.slice(e.start,e.end)?null:{start:e.start,end:e.end,open:`[`,close:`](${n})`}}}):r}export{r as t};
