silverbulletmd / silverbullet

The knowledge hacker's notebook
https://silverbullet.md
MIT License
2.14k stars 155 forks source link

"Page: Materialize" command (or similar) #708

Closed zefhemel closed 5 months ago

zefhemel commented 5 months ago

What this would do is replace any template or query block with its rendered content in place. This content then becomes static and will no longer update and just become part of the page itself. It would be a way to "freeze in time" but also to make it easier to export this content to non-SilverBullet markdown tools.

gorootde commented 5 months ago

I wrote a space script that exports a markdown page to PDF. The Page: Materialize would be an awesome addition, since dynamic content would become plain markdown and thus also be exportable to PDF.

zefhemel commented 5 months ago

Did you share this script anywhere? I'm sure others would like this too.

zefhemel commented 5 months ago

Ah you're even in that issue: https://github.com/silverbulletmd/silverbullet/issues/635

SONDLecT commented 5 months ago

I wrote a space script that exports a markdown page to PDF. The Page: Materialize would be an awesome addition, since dynamic content would become plain markdown and thus also be exportable to PDF.

Yes pls! This is something I'd use all the time. Constantly trying to send notes from SB to normies.

gorootde commented 5 months ago

Sure, I just added the PDF export script to my collection: https://github.com/gorootde/silverbullet-collection . See the script's MD file for a description of its dependencies.