File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -43,7 +43,7 @@ export const pdfToMarkdownService = {
4343 await execPromise ( pdftotextCommand ) ;
4444
4545 // Step 2: Use pandoc to convert text to Markdown
46- const pandocCommand = `pandoc -f text -t markdown "${ textPath } " -o "${ outputPath } "` ;
46+ const pandocCommand = `pandoc -f markdown -t markdown "${ textPath } " -o "${ outputPath } "` ;
4747 console . log ( `Executing pandoc command: ${ pandocCommand } ` ) ;
4848
4949 await execPromise ( pandocCommand ) ;
Original file line number Diff line number Diff line change @@ -29,7 +29,7 @@ export const textToMarkdownService = {
2929 await fs . promises . writeFile ( inputPath , textBuffer ) ;
3030
3131 // Use pandoc to convert plain text to Markdown
32- const command = `pandoc -f text -t markdown "${ inputPath } " -o "${ outputPath } "` ;
32+ const command = `pandoc -f markdown -t markdown "${ inputPath } " -o "${ outputPath } "` ;
3333 console . log ( `Executing pandoc command: ${ command } ` ) ;
3434
3535 await execPromise ( command ) ;
You can’t perform that action at this time.
0 commit comments