Add better support for markdown (switch nano-markdown for markdown-it as the former doesn't support backtick-code-formatting), add Markdown element. See #1929

This commit is contained in:
Pieter Vander Vennet 2024-04-27 22:44:35 +02:00
parent 9ead113555
commit d2e7bac775
10 changed files with 120 additions and 32 deletions

View file

@ -507,7 +507,7 @@ In the case that MapComplete is pointed to the testing grounds, the edit will be
let result = ""
while (match) {
const [_, normal, key, leftover] = match
let v = tags === undefined ? undefined : tags[key]
let v = tags?.[key]
if (v !== undefined && v !== null) {
if (v["toISOString"] != undefined) {
// This is a date, probably the timestamp of the object