Playground: Order options (#10501)
* Playground: Order options * Remove `rangeStart/End` from `ENABLED_OPTIONS`
This commit is contained in:
1 parent
d3a0699148
commit
ff32d6b823
1 file changed
+7
-1
@@ -137,6 +137,12 @@ class Playground extends React.Component {
|
||||
getMarkdown({ formatted, reformatted, full, doc }) {
|
||||
const { content, options } = this.state;
|
||||
const { availableOptions, version } = this.props;
|
||||
const orderedOptions = orderOptions(availableOptions, [
|
||||
...ENABLED_OPTIONS,
|
||||
"rangeStart",
|
||||
"rangeEnd",
|
||||
]);
|
||||
const cliOptions = util.buildCliArgs(orderedOptions, options);
|
||||
|
||||
return formatMarkdown({
|
||||
input: content,
|
||||
@@ -146,7 +152,7 @@ class Playground extends React.Component {
|
||||
version,
|
||||
url: window.location.href,
|
||||
options,
|
||||
cliOptions: util.buildCliArgs(availableOptions, options),
|
||||
cliOptions,
|
||||
full,
|
||||
});
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user