nobiot / md-roam

Use Org-roam with markdown files by adding Md-roam as a plug-in. Mix org and markdown files in a single Org-roam database.
GNU General Public License v3.0
333 stars 15 forks source link

wikilinks dont work #84

Closed Undomeno closed 7 months ago

Undomeno commented 7 months ago

It is fine with [title](path.md), but would not work as [[wikilinks]]. I can find the nodes with org-roam-node-find and other functions, but nodes referred by wiki links simply do not work (you cannot open the links, and they won't appear as backlinks). Here is my configuration.

;; MD-roam for Markdown support in Org-roam
(use-package! md-roam
  :after org-roam
  :config 
  ;; (set-company-backend! 'markdown-mode 'company-capf)
  (setq org-roam-file-extensions '("org" "md"))
  (md-roam-mode 1)
  (setq md-roam-file-extension '("md" "markdown")) ; default "md". Specify an extension such as "markdown"
  (add-to-list 'org-roam-capture-templates
               '("m" "Markdown" plain "" :target
                 (file+head "10-Inbox/%<%Y%m%dT%H%M%S>-${slug}..md"
                            "---\ntitle: ${title}\nid: %<%Y-%m-%dT%H%M%S>\ncategory: \n---\n")
                 :unnarrowed t))
  (org-roam-db-autosync-mode 1)
  )

It worked fine with org-roam ui.

nobiot commented 7 months ago

When you write [[wikilink]], what is wikilink? Is it a file name, title, or the ID?

Undomeno commented 7 months ago

When you write [[wikilink]], what is wikilink? Is it a file name, title, or the ID?

I tried both the title and ID, but none of them worked

I don't know what I have done, but by editing the config files, now I can get backlinks to work. But I still can't open the wiki links directly.

nobiot commented 7 months ago

Have you toggled on the wikilink within markdown mode?

Undomeno commented 7 months ago

Have you toggled on the wikilink within markdown mode?

My bad, thank you so much!!!