mirror of
https://github.com/VectifyAI/PageIndex.git
synced 2026-04-24 23:56:21 +02:00
Add markdown support
This commit is contained in:
parent
33ec9aca6e
commit
12400d7635
1 changed files with 13 additions and 0 deletions
13
README.md
13
README.md
|
|
@ -137,6 +137,19 @@ You can customize the processing with additional optional arguments:
|
|||
```
|
||||
</details>
|
||||
|
||||
<details>
|
||||
<summary>Markdown support</summary>
|
||||
<br>
|
||||
We also provide a markdown support for PageIndex. You can use the `-md` flag to generate a tree structure for a markdown file.
|
||||
|
||||
```bash
|
||||
python3 run_pageindex.py --md_path /path/to/your/document.md
|
||||
```
|
||||
|
||||
> Notice: in this function, we use "#" to determine node heading and their levels. For example, "##" is level 2, "###" is level 3, etc. Make sure your markdown file is formatted correctly. If your Markdown file was converted from a PDF or HTML, we don’t recommend using this function, since most existing conversion tools cannot preserve the original hierarchy. Instead, use our [PageIndex OCR](https://pageindex.ai/blog/ocr), which is designed to preserve the original hierarchy, to convert the PDF to a markdown file and then use this function.
|
||||
|
||||
</details>
|
||||
|
||||
---
|
||||
|
||||
# ☁️ Improved Tree Generation with PageIndex OCR
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue