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.
This commit is contained in:
Simon Lydell authored and GitHub committed 2019-06-17 17:58:38 +02:00
1 parent 8fcc7c18b3
commit 4893a86a6f
1 file changed
+1
+1
View File
@@ -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":