Sorry for a syntax mistake of template tiddler, here is the correct one 

<$set name="q" 
value={{{[[path/to/your/gist.html?user=]addsuffix{!!gist_user}addsuffix[&id=]addsuffix{!!gist_id}]}}}>
<html><div align="center"><iframe src=<<q>> frameborder="0" width="100%" 
height="600"></iframe></div></html>
</$set>
在2021年3月8日星期一 UTC+8 下午4:36:07<mMHog> 写道:

> 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/0f694db9-53ea-48cb-addc-9b61b7a3fbd1n%40googlegroups.com.

Attachment: T_Gist.json
Description: application/json

Reply via email to