Re: PicoLisp Wiki: Embed Content?
Hi Alex, thanks! And in case it's a personal private wiki one could even outcomment the new syntax element and eliminate the check for an schrieb am Do., 13. Okt. 2022, 08:24: > Hi Thorsten, > > > I thought about security too. I even would like to have 2 embed options, > > one only for iframes, the other for any html (produced by an external > tool) > > This is indeed a potential security risk. A public Wiki can be edited by > everyone and malicious HTML code might sneak in. > > As discussed yesterday, I commented the change in the release and on the > public > site. It is useful in environments where edit access is controlled, so it > can be > un-commented in such cases. > > Released. > > ☺/ A!ex > > -- > UNSUBSCRIBE: mailto:picolisp@software-lab.de?subject=Unsubscribe >
Re: PicoLisp Wiki: Embed Content?
Hi Thorsten, > I thought about security too. I even would like to have 2 embed options, > one only for iframes, the other for any html (produced by an external tool) This is indeed a potential security risk. A public Wiki can be edited by everyone and malicious HTML code might sneak in. As discussed yesterday, I commented the change in the release and on the public site. It is useful in environments where edit access is controlled, so it can be un-commented in such cases. Released. ☺/ A!ex -- UNSUBSCRIBE: mailto:picolisp@software-lab.de?subject=Unsubscribe
Re: PicoLisp Wiki: Embed Content?
Hi Alex, simplification looks good, will test later. I thought about security too. I even would like to have 2 embed options, one only for iframes, the other for any html (produced by an external tool)
Re: PicoLisp Wiki: Embed Content?
Hi Thorsten, > 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 : > §{ } > ... > Would you consider to add something like this in wiki/lib.l ? Yes, sounds like a good idea :) > or better a check like this, then if the §{content} does not start with > > ("§" # > iframe > (let Lnk (till "}" T) > (if (= "(prin Lnk) >(ht:Prin Lnk) ) ) ) Thanks!! I simplified this a little to: ("§" # iframe (let Lnk (till "}" T) ((if (pre? "mailto:picolisp@software-lab.de?subject=Unsubscribe
Re: PicoLisp Wiki: Embed Content?
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?
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
Re: PicoLisp Wiki: Embed Content?
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
PicoLisp Wiki: Embed Content?
Hi List, is there a way to embed content in a PicoLisp Wiki file? I can download the video, add it to the page, and then reference it by name @{}. 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" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen> I could not figure out how to include this in a page with the PicoLisp Wiki Syntax - probably it's not possible? Cheers Thorsten