Initially, it would be helpful recognizing multiline extension of the original grammar
- linkType [[note 1]], [[note 2|alias]]
i.e.
- linkType
- [[note 1]]
- [[note 2|alias]]
Next independent steps could be:
2. ignoring optional colon and spaces after “linkType”
3. ignoring text after the link, to allow for comments
4. recognizing also markdown style links
5. recognizing both, space and tab based indentation (not necessary to recognize mixed, for simplicity)
6. allowing to combine multiple links on one line with multi-line version, e.g. like this:
- linkType: (the colon is optional)
- [[note 1]], [[note 2|alias]] optional comment after last consecutive link on the line
- [[note 3]]
- [[note 4]], [[note 5]], [[note 6]]
- advantage of mixed version: allows to annotate list items by end-line comments while saving screen space by chaining non-annotated items in as few lines as possible.