Skip to content

Commit be291fe

Browse files
authored
Merge pull request #15 from david-ponc/docs/fix-notation-focus-usage
docs(notation-focus): update title and remove comment from usage block
2 parents 058c1aa + 6b709e1 commit be291fe

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

apps/website/src/docs/shiki/notation-focus.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,14 +52,14 @@ const rehypeShikiOptions: RehypeShikiCoreOptions = {
5252
export { rehypeShikiOptions };
5353
```
5454

55-
2. Use the `[!code ++]` and `[!code --]` markers to indicate added and removed lines, respectively:
55+
2. Add `[!code focus]` to the line you want to highlight in your code block:
5656

5757
````mdx {3}
5858
```
5959
const code = `type Languages = "javascript" | "typescript";`;
6060
const highlighter = await highlight(); // [!code focus]
6161
const html = highlighter.codeToHtml(code, {
62-
lang: "typescript", // [!code ++]
62+
lang: "typescript",
6363
theme: "one-light",
6464
});
6565
```

0 commit comments

Comments
 (0)