Markdown usage

71 views
Skip to first unread message

László Zsigmond

unread,
Apr 30, 2021, 10:09:36 AM4/30/21
to tiddl...@googlegroups.com
Hello,

Please help me out if these are possible somehow:
  • Linking tiddlers from MD? 
  • Or if possible even macros in MD?
  • Making part of the TW5 formatted tiddler to be rendered as MD, or in MD to render part of it as TW5?
  • Conversion between TW5 and MD?

Thanks,
Laci

torax...@googlemail.com

unread,
Apr 30, 2021, 10:36:21 AM4/30/21
to TiddlyWiki
Hi,

1. Use the permalink behind #-Menupoint for linking direkt from your MD-Document.
2. with the permalink-link you can only link the result.
3. do you have a possibility to import HTML to MD? in that case you can also use the rendering of TW5 from the permalink
4. well, there could be one build, but what excactly is in your mind?

cheers
Torax

Mark S.

unread,
Apr 30, 2021, 11:05:37 AM4/30/21
to TiddlyWiki
In the latest official markdown plugin, you can put most wikitext into your markdown text that fits on a single line. Unfortunately, this does not include links [[ ]] because that markup resembles markdown. But you can use the link widget

<$link to"mytiddler/>

If you want to put markdown into your wikitext, you can transclude the rendered contents of a markdown tiddler into your text:

{{mymarkdowntiddler}}

AFAIK, no one has made a markdown-to-wikitext or vice-versa converter. You could possibly use HTML as an intermediary and then convert to one or the other.

Markdown is the de facto markup language used in virtually all modern apps. There is no prospect that the rest of the world will suddenly embrace wikitext. It would be great if we could work seamlessly with markdown, but I guess we have to use whatever work-arounds we can get.

Flibbles

unread,
Apr 30, 2021, 12:04:52 PM4/30/21
to TiddlyWiki
  1. The markdown way to link to other tiddlers is: [Caption for link](#TiddlerName)
    If your tiddler has spaces, it needs escaping.
    [Caption to link](#Tiddler%20Name)
  2. Calling macros works just fine in Markdown text (as long as it's an inline call). If you want to declare macros, you need to alter "$:/config/markdown/renderWikiTextPragma" and add macrodef
  3. I think your best bet is probably transclusion. I messed around with a way to mix markdown and wikitext. Results weren't great.
  4. Conversion between the two? Not that I know of. Though like Torax said, you can put most wikitext in a markdown file and it'll render.
Reply all
Reply to author
Forward
0 new messages