Skip to content

[Bug]: "Upload as Text" strips most markdown formatting from .md files #12731

Description

@dwzb

What happened?

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 test .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). Both thus contain exactly the same content.

I've uploaded both files using "Upload as Text" to Gemini asking it to compare, you can see the result in the attached screenshot. While the txt file seems to have been uploaded without parsing, the md file was somehow parsed and stripped of almost all markdown.

Version Information

registry.librechat.ai/danny-avila/librechat-dev latest 02c1f73f9b3e 2 days ago 3.49GB

registry.librechat.ai/danny-avila/librechat-rag-api-dev-lite latest d28751141f13 4 weeks ago 2.25GB

ghcr.io/danny-avila/librechat-dev latest 54fe94f67053 5 months ago 2.78GB

ghcr.io/danny-avila/librechat-rag-api-dev-lite latest 86a9b2202f74 7 months ago 2.33GB

Steps to Reproduce

  1. Download attached md and txt files
  2. Verify they are both the same (include markdown)
  3. Upload both using "Upload as Text" and ask the AI to compare regarding markdown formatting

CA-md-file.md
CA-txt-file.txt

What browsers are you seeing the problem on?

No response

Relevant log output

No relevant logs were created

Screenshots

Image

Code of Conduct

  • I agree to follow this project's Code of Conduct

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    🐛 bugSomething isn't working

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions