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.
master
Simon Lydell 2019-06-17 17:58:38 +02:00 committed by GitHub
parent 8fcc7c18b3
commit 4893a86a6f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

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":