New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Web UI mis-interprets symbols in code elements as Markdown formatting #317
Comments
mrdomino
added a commit
to mrdomino/llamafile
that referenced
this issue
Apr 22, 2024
Both matchers are now constrained so that they will only be transformed if the left-hand characters are the start of the text or preceeded by whitespace, and the right-hand characters are the end of the text or followed by whitespace or a punctuation mark. This misses some cases, e.g. emphasis inside of parantheticals, but has better behavior with e.g. underscores in function names outside of code blocks. Fixes Mozilla-Ocho#317.
mrdomino
added a commit
to mrdomino/llamafile
that referenced
this issue
Apr 22, 2024
Both matchers are now constrained so that they will only be transformed if the left-hand characters are the start of the text or preceeded by whitespace, and the right-hand characters are the end of the text or followed by whitespace or a punctuation mark. This misses some cases, e.g. emphasis inside of parantheticals, but has better behavior with e.g. underscores in function names outside of code blocks. Fixes Mozilla-Ocho#317.
jart
pushed a commit
that referenced
this issue
May 6, 2024
Both matchers are now constrained so that they will only be transformed if the left-hand characters are the start of the text or preceeded by whitespace, and the right-hand characters are the end of the text or followed by whitespace or a punctuation mark. This misses some cases, e.g. emphasis inside of parantheticals, but has better behavior with e.g. underscores in function names outside of code blocks. Fixes #317.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
In the chat web UI, underscores (
_
) are treated as italicized text delimiters, even within code spans and blocks where they should not affect formatting. I've also observed this with asterisks (*
).I'm running
./mixtral-8x7b-instruct-v0.1.Q5_K_M.llamafile
(but LLaVA does the same thing) with 100% default settings. My first chat message isThe result looks like this, with missing underscores and text between them italicized.
This makes it harder to use llamafile for programming assistance.
The text was updated successfully, but these errors were encountered: