Markdown file parsing error, code blocks are split. #4664

Closed
opened 2026-02-21 18:07:28 -05:00 by yindo · 5 comments
Owner

Originally created by @zesen-lee on GitHub (Jul 18, 2024).

Originally assigned to: @JohnJyong on GitHub.

Self Checks

  • This is only for bug report, if you would like to ask a question, please head to Discussions.
  • I have searched for existing issues search for existing issues, including closed ones.
  • I confirm that I am using English to submit this report (我已阅读并同意 Language Policy).
  • 请务必使用英文提交 Issue,否则会被关闭。谢谢!:)
  • Please do not modify this template :) and fill in all the required fields.

Dify version

0.6.14

Cloud or Self Hosted

Self Hosted (Docker)

Steps to reproduce

  1. import this md file https://github.com/blankbro/mqtt-storm/blob/master/README.md
  2. auto split or custom split

then you can look the bug

image

✔️ Expected Behavior

code blocks into a single chunk.

Actual Behavior

code blocks are being split into multiple chunk.

Originally created by @zesen-lee on GitHub (Jul 18, 2024). Originally assigned to: @JohnJyong on GitHub. ### Self Checks - [X] This is only for bug report, if you would like to ask a question, please head to [Discussions](https://github.com/langgenius/dify/discussions/categories/general). - [X] I have searched for existing issues [search for existing issues](https://github.com/langgenius/dify/issues), including closed ones. - [X] I confirm that I am using English to submit this report (我已阅读并同意 [Language Policy](https://github.com/langgenius/dify/issues/1542)). - [X] 请务必使用英文提交 Issue,否则会被关闭。谢谢!:) - [X] Please do not modify this template :) and fill in all the required fields. ### Dify version 0.6.14 ### Cloud or Self Hosted Self Hosted (Docker) ### Steps to reproduce 1. import this md file https://github.com/blankbro/mqtt-storm/blob/master/README.md 2. auto split or custom split then you can look the bug ![image](https://github.com/user-attachments/assets/9e399788-9df4-4027-9462-4f527e6545b6) ### ✔️ Expected Behavior code blocks into a single chunk. ### ❌ Actual Behavior code blocks are being split into multiple chunk.
yindo added the 🐞 bug label 2026-02-21 18:07:28 -05:00
yindo closed this issue 2026-02-21 18:07:28 -05:00
Author
Owner

@zesen-lee commented on GitHub (Jul 18, 2024):

from https://github.com/langgenius/dify/issues/5569#issuecomment-2235717865

@zesen-lee commented on GitHub (Jul 18, 2024): from https://github.com/langgenius/dify/issues/5569#issuecomment-2235717865
Author
Owner

@tangyoha commented on GitHub (Jul 18, 2024):

@blankbro hi, Alright, I got it.

@tangyoha commented on GitHub (Jul 18, 2024): @blankbro hi, Alright, I got it.
Author
Owner

@crazywoola commented on GitHub (Jul 18, 2024):

What's your custom segment settings.

@crazywoola commented on GitHub (Jul 18, 2024): What's your custom segment settings.
Author
Owner

@zesen-lee commented on GitHub (Jul 18, 2024):

What's your custom segment settings.

# ,##, ### all is tried

@zesen-lee commented on GitHub (Jul 18, 2024): > What's your custom segment settings. `#` ,`##`, `###` all is tried
Author
Owner

@tangyoha commented on GitHub (Jul 18, 2024):

see api/core/rag/extractor/markdown_extractor.py split #.Didn't consider the situation of # in the code.

@tangyoha commented on GitHub (Jul 18, 2024): see api/core/rag/extractor/markdown_extractor.py split #.Didn't consider the situation of # in the code.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langgenius/dify#4664