Subscribe

2022-10-11 Thread Zgj Vjn



Re: PicoLisp Wiki: Embed Content?

2022-10-11 Thread Thorsten Jolitz
PS
or better a check like this, then if the §{content} does not start with
:

> Hi Alex,
> it's actually extremely easy to embed content in a picolisp wiki file,
> when adding the syntax element from the PS 1 to wiki/lib.l :
> §{ }
> I added a little check for  syntax user cannot insert any kind of code.
>
> With this element its easy to embed youtube videos in wiki pages, they all
> have an embed link (see PS 2)
>
> Would you consider to add something like this in wiki/lib.l ?
> Cheers
> Thorsten
>
>
>
> PS 1
> 
>
> 1 file changed, 5 insertions(+), 1 deletion(-)
>
>
> lib.l | 6
>
> +-
>
>
> modified   lib.l
>
>
> @@ -54,7 +54,7 @@
>
>
> (recur (Nest)
>
>
> (use C
>
>
> (loop
>
>
>-   (ht:Prin (till "^J123456&/!_*+-%~|<@>=\^:$\\#}" T))
>
>
> +   (ht:Prin (till "^J123456&/!_*+-%~|<@>=\^:$\\#§}" T))
>
>
> (NIL (setq C (char)))
>
>
> (T (and Nest (= C "}")))
>
>
> (unless (= C "\\")
>
>
> @@ -159,6 +159,10 @@
>
>
> (renderBlock ht:Prin)) )
>
>
> ("\\" (prin "{"))  # Escaped brace
>
>
> ("#" (renderBlock prog))  # Comment
>
>
> +   ("§"  # iframe
>
>
> +  (let Lnk (till "}" T)
>
>
> +   (when (= " (chop Lnk) " ")
>
> + (prin Lnk) ) )
>
>
> (T (prin C "{")) ) )
>
>
> (T (ht:Prin C)) ) ) ) ) ) ) )
> 
>
> PS 2
> https://www.youtube.com/embed/k7CHDscLREk; title="YouTube video player"
> frameborder="0" allow="accelerometer; autoplay; clipboard-write;
> encrypted-media; gyroscope; picture-in-picture" allowfullscreen>
>
>
> Am So., 17. Juli 2022 um 15:46 Uhr schrieb Alexander Burger <
> a...@software-lab.de>:
>
>> Hi Thorsten,
>>
>> > is there a way to embed content in a PicoLisp Wiki file?
>> > ...
>> > But when sharing e.g. a youtube video, there is the "embed" option, that
>> > gives this iframe:
>> > https://www.youtube.com/embed/xEKHU4zCRpY; title="YouTube video player"
>> > ...
>> > I could not figure out how to include this in a page with the PicoLisp
>> Wiki
>> > Syntax - probably it's not possible?
>>
>> I'm afraid so. I think there is no syntax for that in the markup
>> language. Maybe
>> Erik has an idea?
>>
>> ☺/ A!ex
>>
>> --
>> UNSUBSCRIBE: mailto:picolisp@software-lab.de?subject=Unsubscribe
>>
>


Re: PicoLisp Wiki: Embed Content?

2022-10-11 Thread Thorsten Jolitz
Hi Alex,
it's actually extremely easy to embed content in a picolisp wiki file, when
adding the syntax element from the PS 1 to wiki/lib.l :
§{ }
I added a little check for =\^:$\\#}" T))


+   (ht:Prin (till "^J123456&/!_*+-%~|<@>=\^:$\\#§}" T))


(NIL (setq C (char)))


(T (and Nest (= C "}")))


(unless (= C "\\")


@@ -159,6 +159,10 @@


(renderBlock ht:Prin)) )


("\\" (prin "{"))  # Escaped brace


("#" (renderBlock prog))  # Comment


+   ("§"  # iframe


+  (let Lnk (till "}" T)


+   (when (= "https://www.youtube.com/embed/k7CHDscLREk; title="YouTube video player"
frameborder="0" allow="accelerometer; autoplay; clipboard-write;
encrypted-media; gyroscope; picture-in-picture" allowfullscreen>


Am So., 17. Juli 2022 um 15:46 Uhr schrieb Alexander Burger <
a...@software-lab.de>:

> Hi Thorsten,
>
> > is there a way to embed content in a PicoLisp Wiki file?
> > ...
> > But when sharing e.g. a youtube video, there is the "embed" option, that
> > gives this iframe:
> > https://www.youtube.com/embed/xEKHU4zCRpY; title="YouTube video player"
> > ...
> > I could not figure out how to include this in a page with the PicoLisp
> Wiki
> > Syntax - probably it's not possible?
>
> I'm afraid so. I think there is no syntax for that in the markup language