cooklang / cooklang-obsidian

Edit and display CookLang recipes in Obsidian
MIT License
210 stars 16 forks source link

Export recipe preview to HTML file #20

Open Lonerider2010 opened 2 years ago

Lonerider2010 commented 2 years ago

As far as I understand the code of codeview.ts, the formatting of the recipe is done in HTML. So it should be easy to add a command "Export recipe to HTML file" and write the HTML code into a file. This would be very useful to me (and probably to other users as well) in order to create HTML cookbooks and convert them to PDF.

seangaffney commented 2 years ago

Would love this feature as well! Trying to share a recipe with a friend that doesn't use CookLang and found it challenging...

Perhaps could lean on the Obsidian Pandoc plugin to do the heavy lifting? I assume this doesn't work "out of the box" because the Pandoc plugin doesn't recognize the .cook extension and assumes it's binary, even though the output is HTML.

cgraham149 commented 2 years ago

+1 for a Printing [Feature]

Would love this feature as well! Trying to share a recipe with a friend that doesn't use CookLang and found it challenging...

Perhaps could lean on the Obsidian Pandoc plugin to do the heavy lifting? I assume this doesn't work "out of the box" because the Pandoc plugin doesn't recognize the .cook extension and assumes it's binary, even though the output is HTML.