We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 058c1aa + 6b709e1 commit be291feCopy full SHA for be291fe
apps/website/src/docs/shiki/notation-focus.mdx
@@ -52,14 +52,14 @@ const rehypeShikiOptions: RehypeShikiCoreOptions = {
52
export { rehypeShikiOptions };
53
```
54
55
-2. Use the `[!code ++]` and `[!code --]` markers to indicate added and removed lines, respectively:
+2. Add `[!code focus]` to the line you want to highlight in your code block:
56
57
````mdx {3}
58
59
const code = `type Languages = "javascript" | "typescript";`;
60
const highlighter = await highlight(); // [!code focus]
61
const html = highlighter.codeToHtml(code, {
62
- lang: "typescript", // [!code ++]
+ lang: "typescript",
63
theme: "one-light",
64
});
65
0 commit comments