Hyperlinks are lost after xlsx parsing #4743

Closed
opened 2026-02-21 18:07:49 -05:00 by yindo · 1 comment
Owner

Originally created by @ic-xu on GitHub (Jul 23, 2024).

Self Checks

  • 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.

1. Is this request related to a challenge you're experiencing? Tell me about your story.

The original text I had was like this.

image

But what I got was like this.
image

2. Additional context or comments

I hope that the hyperlink will not be lost after parsing and will be presented in markdown.

3. Can you help us with this feature?

  • I am interested in contributing to this feature.
Originally created by @ic-xu on GitHub (Jul 23, 2024). ### Self Checks - [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. ### 1. Is this request related to a challenge you're experiencing? Tell me about your story. The original text I had was like this. <img width="1722" alt="image" src="https://github.com/user-attachments/assets/169a30c9-3c65-4a81-8ce6-1d1ce0a95f3c"> But what I got was like this. <img width="2532" alt="image" src="https://github.com/user-attachments/assets/2674def8-0b02-4560-88b5-39280c58527c"> ### 2. Additional context or comments I hope that the hyperlink will not be lost after parsing and will be presented in markdown. ### 3. Can you help us with this feature? - [X] I am interested in contributing to this feature.
yindo added the 💪 enhancementstale labels 2026-02-21 18:07:49 -05:00
yindo closed this issue 2026-02-21 18:07:49 -05:00
Author
Owner

@dosubot[bot] commented on GitHub (Jul 23, 2024):

@ic-xu 🌟

To retain and present hyperlinks in markdown format after parsing an XLSX file, you need to ensure that the remove_hyperlinks flag is set to False when initializing the MarkdownExtractor. This will prevent the remove_hyperlinks method from stripping out the hyperlinks from the content.

Here is an example of how you can initialize the MarkdownExtractor to retain hyperlinks:

extractor = MarkdownExtractor(file_path="path_to_your_file.xlsx", remove_hyperlinks=False)
documents = extractor.extract()

By setting remove_hyperlinks=False, the hyperlinks in the markdown content will be preserved [1].

To continue talking to Dosu, mention @dosu.

@dosubot[bot] commented on GitHub (Jul 23, 2024): <!-- Greeting --> @ic-xu 🌟 <!-- Answer --> To retain and present hyperlinks in markdown format after parsing an XLSX file, you need to ensure that the `remove_hyperlinks` flag is set to `False` when initializing the `MarkdownExtractor`. This will prevent the `remove_hyperlinks` method from stripping out the hyperlinks from the content. Here is an example of how you can initialize the `MarkdownExtractor` to retain hyperlinks: ```python extractor = MarkdownExtractor(file_path="path_to_your_file.xlsx", remove_hyperlinks=False) documents = extractor.extract() ``` By setting `remove_hyperlinks=False`, the hyperlinks in the markdown content will be preserved <sup>[[1]](https://github.com/langgenius/dify/blob/main/api/core/rag/extractor/markdown_extractor.py)</sup>. <!-- Dosu Comment Footer --> *To continue talking to [Dosu](https://dosu.dev), mention @dosu.*
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langgenius/dify#4743