File tree 2 files changed +11
-11
lines changed
2 files changed +11
-11
lines changed Original file line number Diff line number Diff line change @@ -19,25 +19,25 @@ <h1 data-auto-animate="">Even Prettier Animations</h1>
19
19
const [count, setCount] = useState(0);
20
20
21
21
return (
22
- < div >
23
- < p > You clicked {count} times</ p >
24
- < button onClick ={() => setCount(count + 1)}>
22
+ < div>
23
+ <p> You clicked {count} times</p>
24
+ < button onClick={() => setCount(count + 1)}>
25
25
Click me
26
- < /button >
27
- < /div >
26
+ < /button>
27
+ < /div>
28
28
);
29
29
}
30
30
31
31
function SecondExample() {
32
32
const [count, setCount] = useState(0);
33
33
34
34
return (
35
- < div >
36
- < p > You clicked {count} times</ p >
37
- < button onClick ={() => setCount(count + 1)}>
35
+ < div>
36
+ <p> You clicked {count} times</p>
37
+ < button onClick={() => setCount(count + 1)}>
38
38
Click me
39
- < /button >
40
- < /div >
39
+ < /button>
40
+ < /div>
41
41
);
42
42
}</ code > </ pre >
43
43
</ section >
Original file line number Diff line number Diff line change @@ -66,7 +66,7 @@ function CodeBlock(block)
66
66
local html = string.format (' <pre %s><code %s>%s</code></pre>' ,
67
67
table.concat (pre_tag_attributes , ' ' ),
68
68
table.concat (code_tag_attributes , ' ' ),
69
- block .text )
69
+ block .text : gsub ( " < " , " < " ): gsub ( " > " , " > " ) )
70
70
return pandoc .RawBlock (' html' , html )
71
71
end
72
72
end
You can’t perform that action at this time.
0 commit comments