From 4893a86a6f6ab37b93a91441d0fac1affdb88285 Mon Sep 17 00:00:00 2001 From: Simon Lydell Date: Mon, 17 Jun 2019 17:58:38 +0200 Subject: [PATCH] Fix markdown syntax highlighting for babel-flow (#6231) Previously, the "Copy markdown" button in the playground generated markdown containing this when having selected "babel-flow" as parser: ```babel-flow This commit changes it to: ```jsx So that the code blocks get syntax highlighting on GitHub. --- website/playground/markdown.js | 1 + 1 file changed, 1 insertion(+) diff --git a/website/playground/markdown.js b/website/playground/markdown.js index 15706a09c..4f469754f 100644 --- a/website/playground/markdown.js +++ b/website/playground/markdown.js @@ -37,6 +37,7 @@ function getMarkdownSyntax(options) { switch (options.parser) { case "babel": case "babylon": // backward compatibility + case "babel-flow": case "flow": return "jsx"; case "typescript":