How to make text/markdown the default tiddler type?

Is there a way to set the default type of a tiddler to text/markdown? I do the vast majority of my editing in markdown and I have to remember to manually change the type to text/markdown every time. Often I forget, then things start to look funny in the preview, I have to interrupt what I’m doing, scroll down, change the type…

I studied the settings and did not find any default type.

I tried creating a tiddler titled $:/config/NewTiddler/Type with content text/markdown, but it did not have any effect.

Then I looked at this thread](How do I make the "click edit to create" button make a markdown tiddler?), which referred to $action-createtiddler as being responsible for creating a new tiddler and setting its type and thought I could hack it, but I can’t find its definition.

Help appreciated…

I recommend changing button to custom one. This is best path, imo

Okay, now i got time for real help.

First of all, button that you need is in $:/core/ui/Buttons/new-tiddler. You can replace actions attribute to suit your needs or duplicate button (which i recommend, but we can go with simpler solution).

Lets choose to edit default action. Go to $:/core/ui/Actions/new-tiddler and add to $action-sendmessage your type:

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

I dont see text/markdown in list of types in my wiki, but i trust you that its right.