Replies: 5 comments
-
Note that this is different to #328 as I might want to edit the included Zettel (e.g. add more definitions over time) which should then be reflected in the Zettels that import it. |
Beta Was this translation helpful? Give feedback.
-
@TheMatten had some ideas on a "include" function, using the syntax from #312 (comment) ... eg: Hello world
{{ include | ./includes/preamble.md }}
Test This would also allow us to embed comments widget (of #270) in every zettel. So I'm in favour of this feature, as long as the syntax for this is consistent with the proposal at #312. Note that there was a similar feature request #184 - but it is not equivalent, as it wants to treat the file being included as a zettel (which isn't the case here). |
Beta Was this translation helpful? Give feedback.
-
Although this is not what you wrote. Could you clarify why you want the file to be included to be a zettel (instead of being a regular file under |
Beta Was this translation helpful? Give feedback.
-
Thank you for your response! 🙂
Actually, it doesn't need to be a zettel but I do think it needs to get parsed in order for MathJax picking up on the |
Beta Was this translation helpful? Give feedback.
-
Right. I imagine the include could happen prior to parsing the Markdown text, so whatever you are including should automatically get parsed. Renamed the issue accordingly. |
Beta Was this translation helpful? Give feedback.
-
I may be mistaken but I do not think that you can include other Zettels into a Zettel presently?
I would find this very handy, especially since I'm using the MathJax support extensively and start having the same preamble of the form
in more and more Zettels. It would be great if I could just write a Zettel with that preamble and then include that in every other Zettel that needs the definitions. For my use case, it would be enough to do this via the metadata as the definitions only need to be loaded at the top of the Zettel. Any thoughts on that? 🙂
Beta Was this translation helpful? Give feedback.
All reactions