alxlg
12/16/2022, 5:27 PM{{clip}}
copied $1
instead of block content 🤔darwis
12/18/2022, 8:40 AMalxlg
12/19/2022, 12:08 PMalxlg
12/23/2022, 7:59 PMnone
"png" "![](../assets/$1.png)"
It will let you to just type:
none
{{png example}}
but when the block is not in edit mode Logseq will just render it like you wrote:
none
![](../assets/example.png)
this macro makes much sense if you use a lot of PNG images and you want to get rid of the .png
too; you can define other macros for other formats and even set it to look at folders other than /assets, or you can just define a {{image ...}}
macro.alxlg
12/23/2022, 8:23 PM"current" "![](../assets/<%current page%>/$1)"
that let me refer assets to the current page if I have placed them in /assets/[[Page Name]]
.
So if I have images numbered I can have something like this:
{{current 01.png}}
that will render different images according to the page I place it in.alxlg
12/23/2022, 8:24 PMdrawingthesun
12/29/2022, 10:10 PMnnotm
12/29/2022, 10:12 PMdrawingthesun
12/29/2022, 10:15 PMbad3r
01/03/2023, 6:37 AM@junyid#6239
for the info
src: https://github.com/logseq/logseq/issues/6154#issuecomment-1369433496trovach
01/03/2023, 8:44 AMsawhney
01/03/2023, 10:32 AMgomezmike
01/04/2023, 9:43 PMalxlg
01/04/2023, 9:49 PMgomezmike
01/04/2023, 11:19 PMalxlg
01/04/2023, 11:22 PMgomezmike
01/04/2023, 11:24 PMalxlg
01/04/2023, 11:26 PM{{embed [[Page]]}}
, have you tried?gomezmike
01/04/2023, 11:36 PMsundarv
01/16/2023, 4:52 PMednico
01/16/2023, 5:49 PMaadilayub
01/29/2023, 12:12 PM<iframe src="https://pomofocus.io"></iframe>
aadilayub
01/29/2023, 12:12 PMbad3r
01/29/2023, 2:58 PMqwqpwp
01/29/2023, 3:06 PMhkgnp
01/30/2023, 6:00 AMaadilayub
01/31/2023, 7:56 AMmonoxane
01/31/2023, 8:59 AMmonoxane
01/31/2023, 8:59 AMmonoxane
01/31/2023, 10:11 AM