θΏ™ζ˜―indexlocζδΎ›ηš„ζœεŠ‘οΌŒδΈθ¦θΎ“ε…₯任何密码
Skip to content

Conversation

@shatfield4
Copy link
Collaborator

Pull Request Type

  • ✨ feat
  • πŸ› fix
  • ♻️ refactor
  • πŸ’„ style
  • πŸ”¨ chore
  • πŸ“ docs

Relevant Issues

resolves #2122

What is in this change?

  • Fix an issue where images in markdown were being rendered in their full size
  • Fixed by creating a custom renderer function for markdown-it
  • Image now takes up the full container size and is responsive with a max width of 800px

Additional Information

Developer Validations

  • I ran yarn lint from the root of the repo & committed changes
  • Relevant documentation has been updated
  • I have tested my code functionality
  • Docker build succeeds locally

@timothycarambat timothycarambat merged commit fd16773 into master Aug 15, 2024
@timothycarambat timothycarambat deleted the 2122-bug-pasting-markdown-with-images-into-the-prompt-returns-weird-image-size-breaking-the-prompt branch August 15, 2024 19:17
cabwds pushed a commit to cabwds/anything-llm that referenced this pull request Jul 3, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[BUG]: Pasting markdown with images into the prompt returns weird image size, breaking the prompt

3 participants