Default type β€” where is it defined?

A tiddler with no type or empty type is treated like a text/vnd.tiddlywiki
But where is this behaviour defined and can a user change it?

You can not change the default type if no type-field is defined. It will always be text/vnd.tiddlywiki.

What would you like to achieve?

I’d like to change this to text/markdown, for instance.

1 Like

If you install the Markdown plugin from $:/ControlPanel -> Plugins you’ll get an additional create Markdown tiddler button in the Page Toolbar. You can have a look at $:/plugins/tiddlywiki/markdown/new-markdown-button to see how it does it.

I think this is the relevant part:

<$action-sendmessage $message="tm-new-tiddler" type="text/markdown"/>

That’s not possible. If the default would be different, every tiddler without a type field would be interpreted in the wrong way. So the whole TW UI would cease to work.