SilentVoid13 / Templater

A template plugin for obsidian
https://silentvoid13.github.io/Templater
GNU Affero General Public License v3.0
3.26k stars 196 forks source link

Support Templater Dynamic Commands in Pandoc Export #475

Open o-3000 opened 2 years ago

o-3000 commented 2 years ago

Plugin informations (please complete the following information):

Describe the bug I ran into many issues trying to get pandoc to pre-process the Templater generated output that's visible in preview mode of a pane. The preview mode is where I also tried to execute the command palette to generate Docx etc using pandoc. The Export to PDF option works fine with Templater properly executed fully but Pandoc seems to ignore it.

Expected behavior The pandoc output methods should work to process exactly what the Preview mode shows for executed Templater commands and frontmatter content too from the current note.

Additional context The Export to PDF option works fine with Templater properly executed fully but Pandoc seems to ignore it.

I also tried building custom pandoc command but since Templater is only in Obsidian it's a severe limitation and one that might be better if Templater fixed or maybe the pandoc plugin authors will need to do but if you can suggest a work around like generate markdown compiled and use that to do Export to docx?

Is there a manual work around, script command or some other script method to work around this limitation that Pandoc ignores Templater?

Or is this a change that may require new update?

o-3000 commented 2 years ago

Any updates you can share on this issue @SilentVoid13 ? Thanks!