https://github.com/sagarbehere/dendron-hugo-export/blob/main/process-wikilinks.py

This script

  • Searches for [[Optional label | wikilink.to.some.file]] in each note (excluding any ‘Backlinks’ section if present)
  • Replaces each instance with [Optional label]({{< ref "wikilink/to/some/file.md" >}})
  • Adds an entry to an sqlite database table, named links, recording a “from note”/“to note” pair