How to use Obsidian to edit markdown on WSL

How to set up WSL with Obsidian

Obsidian can’t natively open and edit WSL files, so, if you’re like me and like using Obsidian (because vs-code always gives me markdown errors when I add front matter) you can mount your windows directory into the Astro content directory.

[boot]
systemd=true
/mnt/c/Users/<path to obsidian folder with site content> /home/<path to astro content directory> none defaults,bind,uid=1000,gid=1000,umask=022 0 0