File tree Expand file tree Collapse file tree 1 file changed +9
-6
lines changed Expand file tree Collapse file tree 1 file changed +9
-6
lines changed Original file line number Diff line number Diff line change @@ -131,9 +131,7 @@ Render an expandable section to provide additional information to users on deman
131131</Expandable >
132132
133133<Expandable title = " Expandable with a code block" >
134- ``` js
135- const foo = ' bar' ;
136- ```
134+ ``` js const foo = 'bar'; ```
137135</Expandable >
138136
139137``` markdown {tabTitle:Example}
@@ -380,11 +378,17 @@ Attributes:
380378
381379If you're writing product feature specific docs, you can specify markers within code blocks that enable or disable certain parts of snippets:
382380
381+ <Alert title = " warning" >
382+ Do not copy the following code snippet, the ` ___PRODUCT_OPTION_START___ ` and
383+ ` ___PRODUCT_OPTION_END___ ` markers have an extra character (zero width space)
384+ as a workaround to make them show up correctly in the example.
385+ </Alert >
386+
383387```` markdown
384388```go
385- // ___PRODUCT_OPTION_START___ performance
389+ // ___PRODUCT_OPTION_START___ performance
386390 // your code here
387- // ___PRODUCT_OPTION_END___ performance
391+ // ___PRODUCT_OPTION_END___ performance
388392```
389393````
390394
@@ -395,7 +399,6 @@ the syntax uses the standard comment style of the programming language you're do
395399
396400where ` feature ` is the feature id (e.g. ` performance ` , ` profiling ` or ` session-replay ` ).
397401
398-
399402The range visibility will be controlled by the ` OnboardingOptionButtons ` component:
400403
401404``` jsx diff
You can’t perform that action at this time.
0 commit comments