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:
1 parent
8fcc7c18b3
commit
4893a86a6f
1 file changed
+1
@@ -37,6 +37,7 @@ function getMarkdownSyntax(options) {
|
|||||||
switch (options.parser) {
|
switch (options.parser) {
|
||||||
case "babel":
|
case "babel":
|
||||||
case "babylon": // backward compatibility
|
case "babylon": // backward compatibility
|
||||||
|
case "babel-flow":
|
||||||
case "flow":
|
case "flow":
|
||||||
return "jsx";
|
return "jsx";
|
||||||
case "typescript":
|
case "typescript":
|
||||||
|
|||||||
Reference in new issue
Block a user