File tree Expand file tree Collapse file tree 3 files changed +10
-1
lines changed
src/resources/filters/quarto-pre
tests/docs/smoke-all/2025/09/02 Expand file tree Collapse file tree 3 files changed +10
-1
lines changed Original file line number Diff line number Diff line change @@ -71,6 +71,10 @@ All changes included in 1.8:
71
71
72
72
- ([ #12676 ] ( https://github.com/quarto-dev/quarto-cli/issues/12676 ) ): Add support for rendering layout panels that are not floats.
73
73
74
+ ### ` docusaurus-md `
75
+
76
+ - [ #13316 ] ( https://github.com/quarto-dev/quarto-cli/issues/13316 ) : ` code-line-numbers: "1" ` correctly highlight the first line now.
77
+
74
78
## Projects
75
79
76
80
### ` website `
Original file line number Diff line number Diff line change @@ -27,7 +27,7 @@ function lineNumbersAttribute(el)
27
27
local default = param (constants .kCodeLineNumbers , false )
28
28
local lineNumbers = attribute (el , constants .kCodeLineNumbers , default )
29
29
-- format that do accept string for this attributes. "1" and "0" should not be parsed as TRUE / FALSE
30
- local acceptStrings = _quarto .format .isRevealJsOutput () and not _quarto .format .isDocusaurusOutput ()
30
+ local acceptStrings = _quarto .format .isRevealJsOutput () or _quarto .format .isDocusaurusOutput ()
31
31
if lineNumbers == true or lineNumbers == " true" or (lineNumbers == " 1" and not acceptStrings ) then
32
32
return true
33
33
elseif lineNumbers == false or lineNumbers == " false" or lineNumbers == " 0" then
Original file line number Diff line number Diff line change 1
1
---
2
+ title : highlight first line
2
3
format : html
3
4
_quarto :
4
5
tests :
@@ -10,6 +11,10 @@ _quarto:
10
11
ensureHtmlElements :
11
12
- ['#cb1[data-code-line-numbers="1"]', 'pre.sourceCode.number-lines']
12
13
- []
14
+ docusaurus-md :
15
+ ensureFileRegexMatches :
16
+ - ['[`]{3}r \{1\} showLineNumbers']
17
+ - []
13
18
execute :
14
19
echo : true
15
20
---
You can’t perform that action at this time.
0 commit comments