microsoft / microsoft/markitdown

Does markitdown have the ability to do join Lines for paragraphs?

Open
#1,037 0 comments 3 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Python
Stars
186k
Forks
13.7k
Avg merge
1d 4h
Merged PRs (30d)
49

Description

I use markitdown to convert PDFs and translate and analyze the texts inside them, unfortunately I have to manually use join lines to reconstruct the paragraphs for input into the translation or text processing software. Is there a solution to automate this?
I actually want to go from image 1 where the lines are separate to image 2 where the lines form a perfect paragraph.


image 1: before join lines

Image1

image 1: after join lines

Image2

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by tracing markitdown's PDF conversion path and comparing its extracted text with the supplied before-and-after images. Define how line breaks should be distinguished from paragraph breaks, then verify that the resulting text is suitable for translation and text-processing software.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
content
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.