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:
7171
7272- ([ #12676 ] ( https://github.com/quarto-dev/quarto-cli/issues/12676 ) ): Add support for rendering layout panels that are not floats.
7373
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+
7478## Projects
7579
7680### ` website `
Original file line number Diff line number Diff line change @@ -27,7 +27,7 @@ function lineNumbersAttribute(el)
2727 local default = param (constants .kCodeLineNumbers , false )
2828 local lineNumbers = attribute (el , constants .kCodeLineNumbers , default )
2929 -- 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 ()
3131 if lineNumbers == true or lineNumbers == " true" or (lineNumbers == " 1" and not acceptStrings ) then
3232 return true
3333 elseif lineNumbers == false or lineNumbers == " false" or lineNumbers == " 0" then
Original file line number Diff line number Diff line change 11---
2+ title : highlight first line
23format : html
34_quarto :
45 tests :
@@ -10,6 +11,10 @@ _quarto:
1011 ensureHtmlElements :
1112 - ['#cb1[data-code-line-numbers="1"]', 'pre.sourceCode.number-lines']
1213 - []
14+ docusaurus-md :
15+ ensureFileRegexMatches :
16+ - ['[`]{3}r \{1\} showLineNumbers']
17+ - []
1318execute :
1419 echo : true
1520---
You can’t perform that action at this time.
0 commit comments