From 9f5b5a678561abc52f490e33bd6344620ff0b26d Mon Sep 17 00:00:00 2001 From: lowlighter <22963968+lowlighter@users.noreply.github.com> Date: Sat, 15 Jan 2022 18:08:05 -0500 Subject: [PATCH] build: markdown short description for `metadata.yml` [skip ci] --- source/app/metrics/metadata.mjs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/source/app/metrics/metadata.mjs b/source/app/metrics/metadata.mjs index 1e5688ac..63c331f3 100644 --- a/source/app/metrics/metadata.mjs +++ b/source/app/metrics/metadata.mjs @@ -287,7 +287,7 @@ metadata.plugin = async function({__plugins, __templates, name, logger}) { const header = [ "
${meta.name} | |||||||
|---|---|---|---|---|---|---|---|
| ${(meta.description ?? "").replace(/\n/g, " ")} | |||||||
| ${marked.parse(meta.description ?? "", {silent:true})} | |||||||
| Supported features → Full specification | ',
` ${Object.entries(compatibility).filter(([_, value]) => value).map(([id]) => `${templates[id].name ?? ""}`).join(" ")} | `,
@@ -304,7 +304,7 @@ metadata.plugin = async function({__plugins, __templates, name, logger}) {
...(meta.scopes ?? []).map(scope => `||||||
${meta.name ?? "(unnamed template)"} | |
|---|---|
| ${(meta.description ?? "").replace(/\n/g, " ")} | |
| ${marked.parse(meta.description ?? "", {silent:true})} | |
| Supported features → Full specification | ',
` ${Object.entries(compatibility).filter(([_, value]) => value).map(([id]) => `${plugins[id].icon}`).join(" ")}${meta.formats?.includes("markdown") ? " ✓ embed()" : ""} | `,