Skip to content

Commit d040152

Browse files
committed
fix: overload code annotations gutters CSS rules
quarto-dev/quarto-cli#13429 quarto-dev/quarto-cli#13448
1 parent 58927a3 commit d040152

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

_extensions/mcanouil/brand.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -141,6 +141,11 @@ defaults:
141141
margin-left: unset;
142142
width: 100%;
143143
}
144+
#code-annotation-line-highlight-gutter,
145+
.code-annotation-gutter-bg,
146+
.code-annotation-gutter {
147+
all: unset;
148+
}
144149
145150
// List Groups
146151
.list-group-item-action {

example.qmd

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ subtitle: "Quarto Extension"
44
author: "Mickaël Canouil"
55
date: today
66
highlight-style: github
7+
code-annotations: select
78
format:
89
html:
910
output-file: index
@@ -96,13 +97,15 @@ def fibonacci(n):
9697
for i in range(2, n):
9798
sequence.append(sequence[i-1] + sequence[i-2])
9899

99-
return sequence
100+
return sequence #<1>
100101

101102
# Example usage
102103
fib_numbers = fibonacci(10)
103104
print(f"First 10 Fibonacci numbers: {fib_numbers}")
104105
```
105106

107+
1. This comment highlights the return statement in the code above.
108+
106109
## Quotes and Callouts
107110

108111
### Blockquotes

0 commit comments

Comments
 (0)