Skip to content

Commit 13b9312

Browse files
authored
docs: add filenames to Marking text examples (#409)
1 parent 02e5f60 commit 13b9312

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

docs/tutorialkit.dev/src/content/docs/guides/creating-content.mdx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -211,15 +211,15 @@ const highlighted = 'This line is highlighted';
211211

212212
You can highlight text using strings or regular expressions. For example:
213213

214-
````md
215-
```jsx "hello" /ye[sp]/ add=/add[12]/ del=/remove[12]/
214+
````md title="content.md"
215+
```jsx title="code.js" "hello" /ye[sp]/ add=/add[12]/ del=/remove[12]/
216216
console.log(
217217
'Hello, the words yes and yep will be marked. Also add1, add2, remove1, remove2',
218218
)
219219
```
220220
````
221221

222-
```jsx "hello" /ye[sp]/ add=/add[12]/ del=/remove[12]/
222+
```jsx title="code.js" "hello" /ye[sp]/ add=/add[12]/ del=/remove[12]/
223223
console.log(
224224
'Hello, the words yes and yep will be marked. Also add1, add2, remove1, remove2',
225225
)

0 commit comments

Comments
 (0)