Transparent text in exported pdf when using dark system color scheme

Steps to reproduce

  1. Use Gnome DE and choose Style->Dark under appearance settings.
  2. Go to Settings->Appearance->Base color scheme and set it to “Adapt to system”.
  3. For the “Start here” document first shown when opening the sandbox vault, choose “Export to pdf”.
  4. Choose default options, save anywhere.
  5. Open pdf.

Did you follow the troubleshooting guide? [Y/N]

Y

Expected result

Non-transparent text in the generated pdf.

Actual result

The text is transparent, i.e white on white background.

Environment

SYSTEM INFO:
Obsidian version: v1.4.12
Installer version: v1.3.5
Operating system: #1 SMP PREEMPT_DYNAMIC Thu Sep 7 00:25:01 UTC 2023 6.4.15-200.fc38.x86_64
Login status: logged in
Catalyst license: none
Insider build toggle: off
Live preview: on
Legacy editor: off
Base theme: adapt to system
Community theme: none
Snippets enabled: 0
Restricted mode: on

RECOMMENDATIONS:
none


Additional information

The problem only appears when the theme is “adapt to system theme” and my system theme is dark (on GNOME, Fedora 38). If I pick the dark theme in Obsidian, the issue disappears.

There was a similar issue named " How to set basic black text on white background colors for PDF export when using a dark theme?" [How to set basic black text on white background colors for PDF export when using a dark theme?] but that was for the manual dark theme (which works in my case). Not sure if this is expected behaviour, if so, let me know.