cdaven / tiddlywiki-stuff

My TiddlyWiki macros and plugins.
MIT License
10 stars 2 forks source link

Preserving links in Markdown export #3

Open dongrentianyu opened 1 year ago

dongrentianyu commented 1 year ago

Can I export markdown with the link syntax in the original text? This way, for some people who move to other markdown editors, like obsidian, the linking effect can still be maintained. Instead of adding them again.

dongrentianyu commented 1 year ago

And would it be possible to export the filtered entries as a folder with a lot of small mmrmrakdown files instead of a whole extra large file? It would be better to save it that way.

cdaven commented 1 year ago

The Markdown export plugin intentionally strips "wiki links", with the assumption that there is nothing to link to (that the target tiddler isn't included in the export). So it is possible to retain these links.

I suppose the format to use in your case would be the [[Tiddler name]] format, that e.g. Obsidian and Zettlr uses, but which is invalid Markdown.

I would probably need to implement a configuration for this, where you can pick between stripping internal links, using regular Markdown links to anchors (#) or using Obsidian-style internal links.

hissohathair commented 1 month ago

Willing to take a look at this if that's useful. FWIW the design decision makes sense, but I did find it useful to preserve links when exporting whole sets of tiddlers.

Any thoughts as to how to approach configuration? I can't really find a "standard" way of doing it. I really like how well designed this plugin is so don't want to make a mess. :-)