Skip to content

Commit 4947718

Browse files
committed
"deprecate" the old way of specifying product options
1 parent a8e0547 commit 4947718

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/rehype-onboarding-lines.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff 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
*/

0 commit comments

Comments
 (0)