redimp / otterwiki

A minimalistic wiki powered by python, markdown and git.
https://otterwiki.com
MIT License
586 stars 26 forks source link

Support both `[[PageName | Title]]` and `[[Title | PageName]]` wiki links #155

Open quinncomendant opened 6 days ago

quinncomendant commented 6 days ago

Most wiki platforms use PageName before Title (MediaWiki, DokuWiki, PmWiki, TikiWiki, MoinMoin), as well as many PKM apps like Obsidian, iA Writer, et al.

Although there are some that use Title before PageName, it less common.

Otter should support both, or make the order of wiki link arguments configurable.

I would like to use Otter, but I currently use other tools which require wiki links in [[PageName | Title]] format, so Otter is not compatible, nor would I want to update hundreds of existing documents.

Thanks! Otter is a beautiful project. Keep it up.

redimp commented 6 days ago

Hey @quinncomendant yeah the different styles of Wikilinks are a painpoint. I could not decide which one to chose and picked the one that was in the mistune Examples.

Will add an option to the preferences, so that admins can configure if the wikilink should be parsed as [[PageName | Title]] or [[Title | PageName]].