Hi Nelson Guamán,
I'm glad that you were able to resolve your issue and thank you for posting your solution so that others experiencing the same thing can easily reference this!
Since the Microsoft Q&A community has a policy that "The question author cannot accept their own answer. They can only accept answers by others", I'll repost your solution.
Please click "Accept" the answer as original posters help the community find answers faster by identifying the correct answer.
Issue : How to Generate Markdown from JSON Output in Azure Document Intelligence
Resolution : It was simply a matter of doing the following:
poller = self.client.begin_analyze_document( "prebuilt-layout", AnalyzeDocumentRequest(bytes_source=file_content), output_content_format=DocumentContentFormat.MARKDOWN,
output=[AnalyzeOutputOption.FIGURES], )
analyze_result: AnalyzeResult = poller.result()
print(analyze_result.as_dict())
Please don’t forget to close the thread by clicking "Accept the answer" wherever the information provided helps you, as this can be beneficial to other community members.
Accept answers on Microsoft Q&A | Microsoft Learn
An accepted answer is the answer that the person who asked the question chooses as the one they think best solves their problem.