Currently, the Azure Document Intelligence prebuilt-layout
model does not support adding custom id
attributes directly to <figure>
tags in the Markdown output through any API parameters or options. While the JSON result includes figure IDs (like "1.1"), these IDs are not automatically added to the Markdown. So, the only way to include them is through manual post-processing—after getting the Markdown output, you would need to write a script to go through each <figure>
tag and add the corresponding ID from the JSON result.
It’s very likely that Azure will include this feature in a future update to make the Markdown output more customizable and semantically rich.
I hope this information helps. Thank you!