Change Type to "text/markdown" in tiddlers.

"Hi everyone,

I would like to change the behavior of the ‘Create a new markdown tiddler’ and ‘New Journal’ buttons so that the default tiddler type is always set to text/markdown.

I am relatively new to TiddlyWiki and I don’t have enough technical knowledge to try modifying this actions on my own yet.

Any help would be greatly appreciated.

Thanks!

Surely the create new markdown button already does that?

I then presume you are referring to other buttons;

  • New Tiddler, Leave it in case you want vanilla tiddlers, use settings > appearance > toolbars
  • New Journal $:/core/ui/Buttons/new-journal has its actions in $:/core/ui/Buttons/new-journal
  • New Journal here $:/core/ui/Buttons/new-journal-here contains its own actions

In both tiddlers above modify $message="tm-new-tiddler" to include another field=value

  • In this case type="text/markdown"

But I also suggest you enhance this further adding
journal-date=<<now "YYYY0MM0DD0hh0mm0ss000">>
it provides a reliable value for journal tiddler dated and can be back dated etc…

Tips
Search for “buttons new” in advanced search shadows

1 Like

Thank you very much for your help @TW_Tones

1 Like