From c9fc23e0e7fe364af77e8d6da88292519da40736 Mon Sep 17 00:00:00 2001 From: SUZUKI Sosuke Date: Sat, 13 Jan 2024 00:09:16 +0900 Subject: [PATCH] Update issue template (#15886) Co-authored-by: Alexander Kachkaev --- .github/ISSUE_TEMPLATE/formatting.md | 10 +++++++++- website/playground/markdown.js | 5 ++++- 2 files changed, 13 insertions(+), 2 deletions(-) diff --git a/.github/ISSUE_TEMPLATE/formatting.md b/.github/ISSUE_TEMPLATE/formatting.md index 5eacfff09..10854bdcd 100644 --- a/.github/ISSUE_TEMPLATE/formatting.md +++ b/.github/ISSUE_TEMPLATE/formatting.md @@ -46,4 +46,12 @@ Don't fill the form below manually! Let a program create a report for you: // code snippet ``` -**Expected behavior:** +**Expected output:** + +```jsx +// code snippet +``` + +**Why?** + + diff --git a/website/playground/markdown.js b/website/playground/markdown.js index 8cc2870cf..c4b642e26 100644 --- a/website/playground/markdown.js +++ b/website/playground/markdown.js @@ -27,7 +27,10 @@ function formatMarkdown({ ...(isIdempotent ? [] : ["", "**Second Output:**", codeBlock(output2, syntax)]), - ...(full ? ["", "**Expected behavior:**", ""] : []), + ...(full ? ["", "**Expected output:**", codeBlock("", syntax)] : []), + ...(full + ? ["", "**Why?**", "", ""] + : []), ] .filter((part) => part !== null) .join("\n");