File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -10,13 +10,14 @@ import {visit} from 'unist-util-visit';
1010 * Rehype plugin that adds the `data-onboarding-option="some-option-id"` attribute and `hidden` class name
1111 * to each line of code based on the metastring of the code block.
1212 *
13- * The metastring should be in the format of:
13+ * The metastring should be in the format of (legacy method) :
1414 * `{"onboardingOptions": {"performance": "1, 3-4", "profiling": "5-6"}}`
1515 * where the keys are the onboarding options, the line numbers can be individual or ranges separated by a comma.
1616 *
1717 * These lines will be hidden by default and shown based on the user's selection of `<OnboardingOptionsButtons ... />`
1818 *
1919 * **Note**: This plugin should be used after `rehype-prism-plus` as it relies on its output.
20+ * **Note**: the recommended way to specify the onboarding options now is to use the inline syntax.
2021 *
2122 * @return {import('unified').Plugin<[], Root> }
2223 */
You can’t perform that action at this time.
0 commit comments