Skip to content

Commit 020fe26

Browse files
committed
playwright - Add test for each highlight-style
- Start by testing codeBlock vs InlineCode highlighting, using Keyword token as this is the common one in all theme
1 parent 3551a09 commit 020fe26

29 files changed

+499
-2
lines changed
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
/.quarto/
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
project:
2+
type: default
3+
title: "Quarto Code Highlighting"
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
---
2+
title: Testing a11y code highlight
3+
highlight-style: a11y
4+
theme:
5+
light: flatly
6+
dark: darkly
7+
---
8+
9+
10+
```{.julia}
11+
function divide_floats(x::Float64, y::Float64)
12+
return x / y
13+
end
14+
```
15+
16+
And here the inline version `function divide_floats(x::Float64, y::Float64)`{.julia}.
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
---
2+
title: Testing arrow code highlight
3+
highlight-style: arrow
4+
theme:
5+
light: flatly
6+
dark: darkly
7+
---
8+
9+
10+
```{.julia}
11+
function divide_floats(x::Float64, y::Float64)
12+
return x / y
13+
end
14+
```
15+
16+
And here the inline version `function divide_floats(x::Float64, y::Float64)`{.julia}.
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
---
2+
title: Testing atom-one code highlight
3+
highlight-style: atom-one
4+
theme:
5+
light: flatly
6+
dark: darkly
7+
---
8+
9+
10+
```{.julia}
11+
function divide_floats(x::Float64, y::Float64)
12+
return x / y
13+
end
14+
```
15+
16+
And here the inline version `function divide_floats(x::Float64, y::Float64)`{.julia}.
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
---
2+
title: Testing ayu-mirage code highlight
3+
highlight-style: ayu-mirage
4+
theme:
5+
light: flatly
6+
dark: darkly
7+
---
8+
9+
10+
```{.julia}
11+
function divide_floats(x::Float64, y::Float64)
12+
return x / y
13+
end
14+
```
15+
16+
And here the inline version `function divide_floats(x::Float64, y::Float64)`{.julia}.
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
---
2+
title: Testing ayu code highlight
3+
highlight-style: ayu
4+
theme:
5+
light: flatly
6+
dark: darkly
7+
---
8+
9+
10+
```{.julia}
11+
function divide_floats(x::Float64, y::Float64)
12+
return x / y
13+
end
14+
```
15+
16+
And here the inline version `function divide_floats(x::Float64, y::Float64)`{.julia}.
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
---
2+
title: Testing breeze code highlight
3+
highlight-style: breeze
4+
theme:
5+
light: flatly
6+
dark: darkly
7+
---
8+
9+
10+
```{.julia}
11+
function divide_floats(x::Float64, y::Float64)
12+
return x / y
13+
end
14+
```
15+
16+
And here the inline version `function divide_floats(x::Float64, y::Float64)`{.julia}.
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
---
2+
title: Testing breezedark code highlight
3+
highlight-style: breezedark
4+
theme:
5+
light: flatly
6+
dark: darkly
7+
---
8+
9+
10+
```{.julia}
11+
function divide_floats(x::Float64, y::Float64)
12+
return x / y
13+
end
14+
```
15+
16+
And here the inline version `function divide_floats(x::Float64, y::Float64)`{.julia}.
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
---
2+
title: Testing dracula code highlight
3+
highlight-style: dracula
4+
theme:
5+
light: flatly
6+
dark: darkly
7+
---
8+
9+
10+
```{.julia}
11+
function divide_floats(x::Float64, y::Float64)
12+
return x / y
13+
end
14+
```
15+
16+
And here the inline version `function divide_floats(x::Float64, y::Float64)`{.julia}.

0 commit comments

Comments
 (0)