Hi Bimlas,

>From what I recall this behaviour is determined by the appropriate parser 
for the tiddler type. See wiki.parseText which defaults to vnd.tiddlywiki 
for unknown types.

For CSS/JavaScript the text parser is used which wraps everything in a 
codeblock.
See: core/modules/parsers/textparser.js

Unknown tiddler types I believe are handled as text/vnd.tiddlywiki, so you 
would need to change that default for unknown types. Alternatively you 
could pre-define all the types you might need to use the text parser.

Hope this helps.
Saq

On Monday, October 19, 2020 at 10:27:45 AM UTC+2, bimlas wrote:
>
> When you open a Javascript or CSS tiddler, it displays it as pre-formatted 
> code. If my research is accurate, this behavior is determined by the 
> transclude widget, but I couldn’t investigate the condition.
>
> How can it be solved that e.g. display Markdown tiddlers (type: 
> text/x-markdown) as code (so I don't have to install the Markdown plugin 
> and still make my notes easy to read)?
>

-- 
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/4ea8c23f-7f08-4f6d-975b-106dd45527c9o%40googlegroups.com.

Reply via email to