How to retrain the original python code format when converting pdf to md file? #1185
-
Hello, I just came across Docling library and it seems a great option for me. I did a test and found the code isn't formatted as original. It put a block of code into one line and no indentation. I believe there is an option to control the output format, but hasn't found it. Any help would be very appreciated! My testing code is below:
|
Beta Was this translation helpful? Give feedback.
Answered by
dolfim-ibm
Mar 19, 2025
Replies: 1 comment
-
For proper extraction of the code snippets we have a dedicated model. Here are a few details on how to use it: https://docling-project.github.io/docling/usage/enrichments/#code-understanding |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
dolfim-ibm
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
For proper extraction of the code snippets we have a dedicated model. Here are a few details on how to use it: https://docling-project.github.io/docling/usage/enrichments/#code-understanding