Closed nkaretnikov closed 1 year ago
The error comes from the YAML parser. I wrap the description value in quotes before passing it further.
This avoids YAML syntax errors like this (this example won't work in the old UI either because it's invalid syntax):
description: this is invalid : because it has two colons and no quotes
Verified that links and colons work now.
New UI:
Old UI (same env):
Note: this will still fail to parse a description containing a single quote (because it will be parsed as the terminating quote, leading to a syntax error). I've decided not to address this as part of this PR.
Note: this will still fail to parse a description containing a single quote (because it will be parsed as the terminating quote, leading to a syntax error). I've decided not to address this as part of this PR.
@nkaretnikov That works for me. Can you open up an issue to track?
Fixes #274.