Skip to content

Commit 8cf6077

Browse files
Laurie BarthLaurie Barth
authored andcommitted
clarify highlight classname
1 parent d399868 commit 8cf6077

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

packages/prism/README.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,13 @@ This package supports highlighting inside code blocks. The following two syntaxe
138138
// highlight-end
139139
```
140140

141-
The highlight styling is controlled in `styles.pre`.
141+
The highlight styling is controlled in `styles.pre` under `.highlight`. For example:
142+
143+
```json
144+
".highlight": {
145+
"background": "hsla(0, 0%, 30%, .5)"
146+
}
147+
```
142148

143149
## Additional Languages
144150

0 commit comments

Comments
 (0)