#"Upload as Text" strips most markdown formatting from .md files

1 messages · Page 1 of 1 (latest)

knotty mural
#

When using the "Upload as Text" feature to upload md files, the parser seems to flatten them and remove most of the actual markdown syntax.
To test this, I have created a simple .md file containing a variety of syntax (CA-md-file.md). I've then copied the file and switched name and extension to txt (CA-txt-file.txt). Opening them e.g. in Zed shows them as containing exactly the same content, as expected.
I've uploaded both files using "Upload as Text" to Gemini, you can see the result in the attached picture. While the txt file seems to have been uploaded without parsing, the md file was somehow parsed and stripped of almost all markdown.

I'm not 100% sure this isn't a local config issue, but I am using basically a "vanilla" installation of LibreChat (v0.8.5-rc1) with no custom librechat.yaml.

stoic horizon
# knotty mural When using the "Upload as Text" feature to upload md files, the parser seems to ...

Looks like a solid bug report. The issue is that LibreChat's "Upload as Text" feature is applying a Markdown parser to .md files before sending the content to the model ...so instead of passing the raw text, it's passing the rendered/stripped output. .txt files bypass this step entirely, which is why they arrive intact.
Quick question: are you reporting this on the LibreChat GitHub repo, or do you need help with a workaround for now?

knotty mural
#

For now, my "workaround" is copying and renaming my md files to txt, will be good enough for the time being