-
Hello everyone, First, this a great tool! At the moment I am trying to work on a workflow/ pipeline using Quarto that does the following:
Essentially I want to be able to use the normal Obsidian note taking process (with the on-the-fly creation of new notes, the network view, etc), add in code blocks (in my case python) that can be rendered in quarto, and then publish the results. I am ~90% of the way there, but I have run into some issues, and maybe this list (or the devs!) could help. My biggest issue / roadblock is Quarto's limitation on running executable code in .md files. Although I can just change the extension on all of my .md files to .qmd when I want to render them (and the results are great!), doing so breaks my linkages within my documents and some of the functionality within Obsidian. It would be a lot more convenient if I could just use something like
in the project .yaml file (or a yaml block within the file itself) that allows Quarto to render code in a .md file. Is there any way to override the current block on .md code execution, or any future plans to allow it? I realize that this could also be solved in the other direction by more extensive support for .qmd files in Obsidian, but I think this kind of functionality might be useful for other workflows / processes that have code in .md files. Thanks! |
Beta Was this translation helpful? Give feedback.
Replies: 6 comments 9 replies
-
Currently, we assume I would recommend you save those with some other extension, possibly through a project script that happens automatically ahead of |
Beta Was this translation helpful? Give feedback.
-
Thanks, and I'm glad to hear that it is something that will be fixed in the future! A project script could work - in general I was trying to construct this pipeline for an academic humanities / non technical audience, but a quick script to change extensions, then crawl through .md files and change the relative links there before rendering might be a good way forward. |
Beta Was this translation helpful? Give feedback.
-
I've been dabbling with trying to better integrate executable documents in R with stand alone markdown in Obsidian, and too have been struggling. I used to have a better solution with R markdown, but haven't found a solution with Quarto. What worked for me in Rmarkdown was to have the .rmd file outside of Obsidian, but then render to a markdown file inside of my Obsidian folder structure. Knitting allowed me to send the file somewhere via the front matter...
Figures could be a little wonky, as the links to them weren't always preserved exactly, but I could live with it. I would also have a callout in the output file saying this was just a rendering, and where to find the "real" document should I need to edit and run again. For Quarto, I've been having trouble getting a markdown file to be written as "complete" as it was previously, and I haven't been able to send it to a different folder. Any suggestions? I'm also open to other ways to get Quarto and Obsidian to integrate. |
Beta Was this translation helpful? Give feedback.
-
For the quarto publishing step, I think you could simply include the
where
|
Beta Was this translation helpful? Give feedback.
-
FYI (@cderv originally posted in #5449)
|
Beta Was this translation helpful? Give feedback.
-
My failed workaround to this problem was to create symlinks from each project:
render:
- "!*.md" But this fails with an |
Beta Was this translation helpful? Give feedback.
Currently, we assume
.md
files are intermediate markdown files pretty extensively throughout the codebase. I wouldn't want to rely on using.md
files as input because there's a risk some part of our codebase will step on those files. (This is something we will 100% fix in the future, but it'll be a while until we can get to the bottom of it.)I would recommend you save those with some other extension, possibly through a project script that happens automatically ahead of
quarto render
.