Fix LIST YAMLParseError bug#249
Conversation
|
Seeing as #250 was posted recently I thought I might improve the PR a bit by adding a fix for this as well This adds support for wikilinks in templates with an important note: The frontmatter does not accept wikilinks in comma separated values and would create invalid yaml so I split up ENUM and LIST into ENUM, ENUMYAML, LIST and LISTYAML. ENUMYAML ignores the requested wikiquotes and just outputs the comma separated values without any wikiquotes. So you've got two options for the YAML:
And two options for the body of the note:
|
|
I have been thinking about this some more, and I am worried that this is the incorrect fix for the underlying problem. In my eyes, the template tags are not intended to be used in frontmatter; instead, people should use the property mappings. |
Aah in that case the easiest fix for the YAMLParseError would be just disallowing/ignoring LIST/ENUM in the YAML so it doesn't break note creation. Do you want me to update the PR or do I just close it so you can do the fix? |
See issue #181
Note that the correct template in this case becomes
actorsList: {{ LIST:actors }}without any quotes around the template!