UNPKG

openclaw

Version:

Multi-channel AI gateway with extensible messaging integrations

1 lines • 830 B
import{n as e}from"./rolldown-runtime-CNOWq4Kh.js";import{ar as t}from"./deferred-ui-support-D-VedBtc.js";import{A as n,C as r,D as i,T as a,_ as o,a as s,c,f as l,g as u,h as d,i as f,k as p,m,n as h,o as g,p as _,u as v,v as y,w as b,x,y as S}from"./markdown-highlight-runtime-JnaomDDD.js";function C(e,n){let r=n.trim().toLowerCase();try{if(r&&p.getLanguage(r))return p.highlight(e,{language:r,ignoreIllegals:!0}).value;if(!r&&e.trim()){let t=p.highlightAuto(e);if(t.relevance>=2)return t.value}}catch{}return t(e)}function w(){return(w=e((()=>{n(),b(),o(),d(),_(),s();for(let[e,t]of Object.entries({bash:i,cpp:a,css:r,diff:x,go:S,java:y,javascript:u,json:m,markdown:l,python:v,rust:c,typescript:g,xml:f,yaml:h}))p.registerLanguage(e,t);p.registerAliases(`shell`,{languageName:`bash`})})))()}w();export{C as highlightCodeHtml};