You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
While working on #18284, I noticed on the style guide page, there are two blocks under each highlighting example. One is supposed to be an example and the second one is supposed to be the rendered output.
The issue is the example uses // highlight-line which is stripped with regex I believe around here.
I would like to submit a PR to fix this, but I'm not really sure about the best way to fix this. I think there are a few options: Modify the regex, use a soft-hyphen to break the regex, or replace the code example with a written example.
I think the 3rd option is the best solution as it probably will be the least brittle. Explanation could be:
Use the // highlight-line keyword in order to highlight the line the directive is placed on. <current example>
Use the // highlight-next-line keyword in order to highlight the line after the directive. <current example>
Use the // highlight-start and //highlight-end keywords in order to highlight the lines between the two directives. <current example>
The text was updated successfully, but these errors were encountered:
While working on #18284, I noticed on the style guide page, there are two blocks under each highlighting example. One is supposed to be an example and the second one is supposed to be the rendered output.
The issue is the example uses
// highlight-line
which is stripped with regex I believe around here.I would like to submit a PR to fix this, but I'm not really sure about the best way to fix this. I think there are a few options: Modify the regex, use a soft-hyphen to break the regex, or replace the code example with a written example.
I think the 3rd option is the best solution as it probably will be the least brittle. Explanation could be:
Use the
// highlight-line
keyword in order to highlight the line the directive is placed on.<current example>
Use the
// highlight-next-line
keyword in order to highlight the line after the directive.<current example>
Use the
// highlight-start
and//highlight-end
keywords in order to highlight the lines between the two directives.<current example>
The text was updated successfully, but these errors were encountered: