---
title: "Discussion on \"A 15-page paper converted to Markdown: what broke, and 30 lines of Python that fix it\" | Hashnode"
description: "Discussion on \"A 15-page paper converted to Markdown: what broke, and 30 lines of Python that fix it\". A real PDF-to-Markdown run, the four things that broke, and a standard-library Python script that cleans each page before you chunk it for RAG."
url: "https://hashnode.com/posts/pdf-to-markdown-for-rag/6b0d183c029c1a4245cf6eaa"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [A 15-page paper converted to Markdown: what broke, and 30 lines of Python that fix it](https://sidmishra.hashnode.dev/pdf-to-markdown-for-rag?utm_source=hashnode&utm_medium=feed)

A real PDF-to-Markdown run, the four things that broke, and a standard-library Python script that cleans each page before you chunk it for RAG.

4d ago · 7 min read · sidmishra.hashnode.dev  
Read the article

-   [#rag](https://hashnode.com/tag/rag)
-   [#python](https://hashnode.com/tag/python)
-   [#llm](https://hashnode.com/tag/llm)
-   [#ai](https://hashnode.com/tag/ai)
-   [#markdown](https://hashnode.com/tag/markdown)

## Written by

[Sid Mishra](https://hashnode.com/@sid-mishra)

@sid-mishra · India

  
[View profile](https://hashnode.com/@sid-mishra)

Founder at MeshArc · web scraping for AI

Building MeshArc, a scraping API for sites you re-crawl. I write about scraping, keeping RAG data fresh and spotting what changed on a site.

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
