Input (Markdown)
function format_date($date) {
if (empty($date)) {
return $date;
}
return str_replace('-', '/', $date);
}
Output (PDF)
My Expected Output
- I want to display the file name somewhere in the code block. Ideally, it should be displayed in the upper left corner.
- It would be even better if the same syntax highlighting that appears on the Obsidian preview screen could also be applied to printouts.
Obsidian will show the file name on mouse hover if you write the file name after the file extension, but will not print the file name when printing PDF.
I would like to print the file name when printing a PDF, even if it means that the file name is always displayed.
How can I achieve this?