Skip to content

Commit 7503835

Browse files
Merge pull request #596 from Zaki-Mohd/add-html-syntax-highlighting
fix(docs): add HTML syntax highlighting where missing Fixes #594
2 parents c50d675 + e2118a4 commit 7503835

File tree

2 files changed

+11
-4
lines changed

2 files changed

+11
-4
lines changed

docs/pages/cldvideoplayer/configuration.mdx

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import Head from 'next/head';
2+
import { CldVideoPlayer } from "next-cloudinary";
23

34
import OgImage from '../../components/OgImage';
45
import Table from '../../components/Table';
@@ -522,7 +523,8 @@ be loaded from as well as any customization of that track.
522523

523524
**Examples**
524525

525-
```
526+
```jsx
527+
<CldVideoPlayer
526528
textTracks={{
527529
captions: {
528530
label: 'English',
@@ -531,7 +533,8 @@ textTracks={{
531533
url: 'https://res.cloudinary.com/<Cloud Name>/raw/upload/<FileName>.vtt'
532534
}
533535
}
534-
}}
536+
}
537+
/>
535538
```
536539

537540
Learn more on the [Video Player Reference](https://cloudinary.com/documentation/video_player_api_reference#text_tracks) or

docs/pages/guides/responsive-images.mdx

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,8 @@ in order to provide the responsive sizing.
7070

7171
In the example above, the output would look like:
7272

73-
```
73+
<CodeBlock>
74+
```html copy showLineNumbers
7475
<img
7576
alt="Turtle"
7677
loading="lazy"
@@ -95,6 +96,7 @@ In the example above, the output would look like:
9596
src="https://res.cloudinary.com/<Cloud Name>/image/upload/c_limit,w_3840/f_auto/q_auto/v1/<Public ID>"
9697
>
9798
```
99+
</CodeBlock>
98100

99101
Where the image is automatically generated on the fly with Cloudinary by passing
100102
in a URL parameter of `w_<width>`.
@@ -146,7 +148,8 @@ Each image will be cropped to a 1:1 ratio represented by the width and height pr
146148
As the underlaying Next Image component generates an image for each responsive size,
147149
Cloudinary will use those sizes when building the URL, for example:
148150

149-
```
151+
<CodeBlock>
152+
```html copy showLineNumbers
150153
<img
151154
alt="Turtle"
152155
loading="lazy"
@@ -169,6 +172,7 @@ Cloudinary will use those sizes when building the URL, for example:
169172
src="https://res.cloudinary.com/<Cloud Name>/image/upload/c_fill,w_3840,h_3840,g_auto/f_auto/q_auto/v1/<Public ID>"
170173
>
171174
```
175+
</CodeBlock>
172176

173177
And so on...
174178

0 commit comments

Comments
 (0)