Here are the file required 在2021年2月24日星期三 UTC+8 上午5:39:13<[email protected]> 写道:
> From a previous thread where I was having the same problem:
>
> SOLUTION/WORKAROUND
> WARNING: this requires changing a core tiddler. The code is there for a
> reason. My use case is very specific in that I will only be doing this on
> a wiki that runs just to render static tiddlers.
>
> I noticed that the rendering process for the <script> tag renders as
> <safe-script>. So I just searched and found the tiddler responsible for
> the modification and commented out the code.
>
> The tiddler is $:/core/modules/widgets/element.js and the code to comment
> out is
>
> if($tw.config.htmlUnsafeElements.indexOf(tag) !== -1)
> { tag = "safe-" + tag;
> }
>
> <https://tiddlywiki.com/#>Again this would I imagine create a very
> serious security risk in wikis open to the internet.
>
> I cannot stress enough that this could cause serious issues. Since it is
> a gist it may just be better to just copy/paste and avoid the potential for
> problems.
> On Friday, February 19, 2021 at 4:57:18 PM UTC-5 [email protected]
> wrote:
>
>>
>> Hi TW users,
>>
>> Does anyone know why the embed code for a gist doesn't display in a
>> tiddler? I get an empty box returned. I tried wrapping in an <iframe> also.
>>
>> This is the code I am trying to add:
>> <script src="https://gist.github.com/protrolium/e0dbd4bb0f1a396fcb55.js
>> "></script>
>>
>> macOS 10.13.6
>> Firefox 85.0.2
>>
>
--
You received this message because you are subscribed to the Google Groups
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/tiddlywiki/08675840-3358-4729-8aa8-301332b0f3d3n%40googlegroups.com.
T_Gist.json
Description: application/json
<<< text/html; charset=US-ASCII; name=gist.html: Unrecognized >>>

