Convert Org-Roam to Markdown
I recently switched my note taking system from Org Roam to Dendron. Here’s how I converted my notes from org-mode to markdown:
- Create an
output
folder in a copy of your org-roam directory. We’ll copy the markdown versions of your files here. - Run this script in the terminal to use pandoc to convert from org-mode to markdown:
for i in *.org; pandoc --wrap=none -s -f org -t markdown+yaml_metadata_block $i > "output/${i%.org}.md"
Note that the --wrap=none
is important to keep your linebreaks the same.
- Use vscode search in this directory to swap
.org)
for.md)
in the links