handle creating items with markdown in description field
when creating a new item, html tags in the description field are transformed into markdown. however, this incorrectly strips line breaks and wrongly escapes characters in md content.
example:
this works correctly (line breaks and fenced code block are preserved):
curl http://localhost:8080/api/tools \
-X POST \
-H "Content-Type: application/json" \
-d '{"label":"Test Tool","description":"# Heading\n\nSome **bold** text.\n\n```js\nfunction hello() {}\n```\n"}'
resulting description:
"# Heading\n\nSome **bold** text.\n\n```js\nfunction hello() {}\n```\n"
this however fails (note: **bold**
=> <strong>bold</strong>
):
curl http://localhost:8080/api/tools \
-X POST \
-H "Content-Type: application/json" \
-d '{"label":"Test Tool 2","description":"# Heading\n\nSome <strong>bold</strong> text.\n\n```js\nfunction hello() {}\n```\n"}'
resulting description:
"# Heading Some **bold** text. \\`\\`\\`js function hello() {} \\`\\`\\`"