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

Allow roam_alias to be a YAML formatted array #19

Closed dschapman closed 4 years ago

dschapman commented 4 years ago

Currently this value accepts the same values as org-roam does -- a space delimited list. I'm curious whether it would be possible to format this as a regular array in the YAML frontmatter.

For example: roam_alias: ['alias 1', 'alias 2', 'alias 3']

I'm playing around with using md-roam in the notes folder on my gatsby website. And the markdown format of md-roam is almost 100% compatible except for the roam_alias values which break when they're parsed by gatsby because they're not correctly formated YAML arrays.

nobiot commented 4 years ago

Oh, thanks for this. Parsing of the space delimited list is done in org-roam. I need to double check this, and play with its implementation to see if it can be easily adjusted for Md-roam. I may be looking at the wrong function, but this is being "simplified"; I will look at it more carefully, hopefully over the weekend.

nobiot commented 4 years ago

@dschapman,

21 will add the feature. Would you mind testing the branch?

My initial tests look OK.

nobiot commented 4 years ago

Thanks for pointing out to me about the YAML syntax. I was not fully aware of it. Now merged with the master, and updated README, etc. Closing this issue for now, but if you see some issues, let me know.

dschapman commented 4 years ago

Thanks for addressing this. Org-Roam worked when I used that format where it hadn’t before.

nobiot commented 4 years ago

@dschapman thanks for confirming that the new version works