No embed title in exported pdf

Steps to reproduce

  1. prepare 2 files

file 1:

- file 1 1111111111111111111111111

file 2:

# This is file 2
![[file 1]]

Preview in file 2

Exported pdf for file 2

Expected result

  • in the exported pdf, the file title (in this case: “file 1”), should also be included

Actual result

Preview in file 2

Exported pdf for file 2

Environment

  • Operating system: Linux
  • Obsidian version: 0.12.19

I am a little torn about this one.
Some users do want the current behavior.
This is a more a FR than BR in mind. It can be achieved with CSS. Open a feature request.

Won’t it be weird if the preview and the exported pdf is in different format? ok I will open a FR