Distribute and run LLMs with a single file.
C++ cross-platformggufllama-cpplocal-ailocal-inferencelocal-llmopen-source-aisingle-file-executablespeech-to-text
More conservative strong/em markdown matcher (#352)
Jōshineecbf89c18ee
diff --git a/llama.cpp/server/public/index.html b/llama.cpp/server/public/index.htmlindex c6c7ecc2..dba3669d 100644--- a/llama.cpp/server/public/index.html+++ b/llama.cpp/server/public/index.html@@ -1125,8 +1125,8 @@// Headlines, emphasis and line breaks.replace(/^#{1,6} (.*)$/gim, '<h3>$1</h3>')- .replace(/(__|\*\*)(.*?)\1/g, '<strong>$2</strong>')- .replace(/(_|\*)(.*?)\1/g, '<em>$2</em>')+ .replace(/(^|\s)(__|\*\*)(.*?)\2($|\s|[.?!])/g, '$1<strong>$3</strong>$4')+ .replace(/(^|\s)(_|\*)(.*?)\2($|\s|[.?!])/g, '$1<em>$3</em>$4').replace(/\n/gim, '<br />')// Paste the extracted blocks back in again