char-fork/llama.cpp
git clone https://git.t4t.associates/char-fork/llama.cpp
bdffafa5d
char/aliceai-t5-moe
1export const IMAGE_NOT_ERROR_BOUND_SELECTOR = 'img:not([data-error-bound])' ; 2 3/** Data attributes for the markdown renderer DOM contract. */ 4export const MARKDOWN_DATA_ATTRS = { 5BLOCK_ID :'data-block-id' , 6CODE_ID :'data-code-id' , 7ERROR_BOUND :'data-error-bound' , 8ERROR_HANDLED :'data-error-handled' , 9LISTENER_BOUND :'data-listener-bound' , 10ORIGINAL_SRC :'data-original-src' 11} as const ; 12 13/** Markdown structural markers used by `looksLikeMarkdown`. Inline / line-level. */ 14export const MARKDOWN = { 15ATX_HEADING_REGEX :/ ^#{1,6}\s+\S / , 16BLOCKQUOTE_REGEX :/ ^>\s+\S / , 17BOLD_REGEX :/ \*\*[^*\n]+\*\*|__[^_\n]+__ / , 18CODE_FENCE_REGEX :/ ^(```|~~~) / m , 19LINK_REGEX :/ \[[^\]\n]+\]\([^)\s]+\) / , 20LIST_BULLET_REGEX :/ ^\s*[-*+]\s+\S / , 21LIST_NUMBERED_REGEX :/ ^\s*\d+[.)]\s+\S / , 22TABLE_SEPARATOR_REGEX :/ ^\s*\|?[\s:|-]+\|?\s*$ / 23} as const ;