Hi Mark,
 You are right! but the issue is I cannot do anything inside code block
while the original Highlight.js allow this!
  Anyway, the Tiddlywiki Codeblock is you said does more than I expect
(using a bare <pre><code>)



Best wishes
Mohammad


On Tue, Apr 27, 2021 at 8:04 AM 'Mark S.' via TiddlyWiki <
[email protected]> wrote:

> When you inspect it, apparently the codeblock widget does much more than
> simply wrap things it pre/code -- it also converts angle brackets and other
> special characters into their HTML entities. That's a feature (I think). If
> you were displaying HTML code, you wouldn't want everything to render,
> right?
>
> On Monday, April 26, 2021 at 8:40:54 AM UTC-7 Mohammad wrote:
>
>> Open https://tiddlywiki.com/prerelease
>> create a new tiddler
>> put the below wikitex in that
>>
>> <$codeblock language=css code="""
>> .mycls{color:red;}
>> <span>This </span>
>> """/>
>>
>> <pre><code>
>> Hello Tiddlywiki
>> <span>This </span>
>> </code></pre>
>>
>>
>> check the result. Tiddlywiki does not allow html code like span tag
>> inside the codeblock but the standard  <pre><code> allows this!
>> What is wrong here?
>>
>> Use Case: standout a specific line of code!
>>
>>
>>
>>
>>
>>
>>
>> Best wishes
>> Mohammad
>>
> --
> 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/d2e5f16d-4db0-4bd8-8717-08921f8170c0n%40googlegroups.com
> <https://groups.google.com/d/msgid/tiddlywiki/d2e5f16d-4db0-4bd8-8717-08921f8170c0n%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>

-- 
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/CAAV1gMDqLHn%2BwGufVmV%2BjxMUwSUYiB1fwV9u8FOKwaAKai-htA%40mail.gmail.com.

Reply via email to