From ff32d6b823eaad777b0d95255d2e78560df63ff8 Mon Sep 17 00:00:00 2001 From: fisker Cheung Date: Thu, 11 Mar 2021 04:20:47 +0800 Subject: [PATCH] Playground: Order options (#10501) * Playground: Order options * Remove `rangeStart/End` from `ENABLED_OPTIONS` --- website/playground/Playground.js | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/website/playground/Playground.js b/website/playground/Playground.js index 9ec84dac7..0892dff1c 100644 --- a/website/playground/Playground.js +++ b/website/playground/Playground.js @@ -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, }); }