Pandoc
disable float for images and keep subtext - https://stackoverflow.com/a/58840456
$ cat disable_float.tex
\usepackage{float}
\let\origfigure\figure
\let\endorigfigure\endfigure
\renewenvironment{figure}[1][2] {
\expandafter\origfigure\expandafter[H]
} {
\endorigfigure
}
and mark images as.

# optional {width=300px height=200px}
shell highlights - https://stackoverflow.com/a/66953455 - optional
original command
$ pandoc OSCP-exam-report-template_dinesh.md \
-o output/OSCP-OS-XXXXX-Exam-Report.pdf \
--from markdown+yaml_metadata_block+raw_html \
--template eisvogel \
--table-of-contents \
--toc-depth 6 \
--number-sections \
--top-level-division=chapter \
--syntax-highlighting breezedark \
--resource-path=.:src
pandoc OSCP-exam-report-template_dinesh.md -o output/OSCP-OS-569879-Exam-Report.pdf --from markdown+yaml_metadata_block+raw_html --template eisvogel --table-of-contents --toc-depth 6 --number-sections --top-level-division=chapter --syntax-highlighting breezedark --resource-path=.:src -H disable_float.tex
Koravi Dinesh Ratna
dineshkoravi@proton.me
OSID: 569879