Replies: 2 comments 4 replies
-
You can use pre-render scripts to populate a quarto project with .md files from .org: https://quarto.org/docs/projects/scripts.html |
Beta Was this translation helpful? Give feedback.
-
It turns out that quarto doesn't watch for file types that it doesn't know about, so there was no way to trigger a pre-render script to convert org to md. Instead, I wrote an emacs after-save-hook that figures out if the org file is in a quarto content directory, and if it is, runs pandoc to convert the .org to .md; works just fine. I did end up using a pre-render script to generate the site table of contents. Happy to share the emacs bits or the pre-render script if there's any interest. Ben |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I'd like to use Emacs org mode to build my web site, and have quarto auto-render the .org files into .md as they are added and updated --- this could be either with pandoc or a custom script that wraps pandoc.
Any pointers on how to do this? I suppose I can always work around with a makefile, or an emacs after-save-hook, but those seem so much less elegant than having quarto know how to render the .org file.
I've looked through the documentation, and maybe I'm just not looking for the right things, but I have not figured out how to do this.
Thanks...
Ben
Beta Was this translation helpful? Give feedback.
All reactions