-
Notifications
You must be signed in to change notification settings - Fork 288
/
Copy pathinline-code.js
50 lines (48 loc) · 1.73 KB
/
inline-code.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
import Head from 'next/head'
export default function Index() {
return (
<div className="antialiased text-gray-900 py-12 pl-32 space-y-12">
<Head>
<title>Tailwind CSS Typography</title>
</Head>
<div className="relative">
<div className="relative prose prose-lg prose-code:text-sky-500">
<h3>reaching all code</h3>
<pre>
<code>
<span className="block">console.log('test 1')</span>
<span className="block">console.log('test 2')</span>
<span className="block">console.log('test 3')</span>
</code>
</pre>
<p>
Lorem ipsum dolor sit, amet consectetur adipisicing elit. Amet deleniti quis veniam{' '}
<code>console.log('test inline')</code> repudiandae optio in at quibusdam autem vero
excepturi.
</p>
</div>
</div>
<div className="relative">
<div className="relative prose prose-lg prose-inline-code:text-rose-500">
<h3>reaching inline code only</h3>
<pre>
<code>
<span className="block">console.log('test 1')</span>
<span className="block">console.log('test 2')</span>
<span className="block">console.log('test 3')</span>
</code>
</pre>
<p>
Lorem ipsum dolor sit, amet consectetur adipisicing elit. Amet deleniti quis veniam
debitis vel, hic sunt, nulla deserunt animi iure aliquid et,{' '}
<code>console.log('test inline')</code> repudiandae optio in at quibusdam autem vero
excepturi.
</p>
</div>
</div>
</div>
)
}
export const config = {
unstable_runtimeJS: false,
}