Build 545032stable
Module 742834
579 characters · in no known chunkDependencies
Source Raw
function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.markdownFormatter=void 0,t.formatToMarkdownString=a;let i=n(168426),r={$b:e=>"**"+e.join("")+"**",$i:e=>"*"+e.join("")+"*",$del:e=>"~~"+e.join("")+"~~",$code:e=>"`"+e.join("")+"`",$link:(e,t,[n])=>"["+e.join("")+"]("+n+")",$p:e=>e.join("")+"\n\n"};class s extends i.StringBuilder{constructor(){super(...arguments),this.result=""}pushRichTextTag(e,t,n){this.result+=r[e](t,"",n)}}function a(e,t,n=s){return"string"==typeof e?e:this.bindFormatValues(n,e,t)[0]}t.markdownFormatter={format:a,builder:s}}