noraj / OSCP-Exam-Report-Template-Markdown

:orange_book: Markdown Templates for Offensive Security OSCP, OSWE, OSCE, OSEE, OSWP exam report
https://noraj.github.io/OSCP-Exam-Report-Template-Markdown/
MIT License
3.56k stars 752 forks source link

Images from Obsidian markdown not beign rendered. #47

Closed dreadlocked closed 1 year ago

dreadlocked commented 1 year ago

Hi, I added the --resource-path to the folder where my images are stored, but the resultant PDF still not showing the images.

I'm using Obsidian as markdown editor, it add images with this syntax:

![[Screenshot 2023-05-18 021312.png]]

The path where those images are is /home/kali/report

So I edited pandoc command line from the osert.rb script and added:

--resource-path=.:/home/kali/report/Final-Report \

So the whole command looks like this:

    `pandoc #{input} -o #{pdf} \
      --from markdown+yaml_metadata_block+raw_html \
      --template eisvogel \
      --table-of-contents \
      --toc-depth 6 \
      --number-sections \
      --top-level-division=chapter \
      --highlight-style #{style} \
      --resource-path=.:/home/kali/report \
      --resource-path=.:/usr/share/osert/src
    `

The report shows the images as[[Screenshot a 2023-05-17 164829.png]] literally.

What I'm doing wrong?

noraj commented 1 year ago

I'm using Obsidian as markdown editor, it add images with this syntax:

![[Screenshot 2023-05-18 021312.png]]

This is not valid markdown syntax, it's a custom Obsidian markup that works only with Obsidian and nowhere else.

Use a valid image syntax instead https://spec.commonmark.org/0.30/#images

dreadlocked commented 1 year ago

Fucking Obsidian

ismaildawoodjee commented 1 year ago

@dreadlocked In your Obsidian options in Files & Links, the option Use [[Wikilinks]] should be disabled:

image