@@ -382,7 +382,7 @@ class ContentExample {
382382 QuotationNode ([ParagraphNode (links: null , nodes: [TextNode ('words' )])])
383383 ]);
384384
385- static final codeBlockPlain = ContentExample (
385+ static const codeBlockPlain = ContentExample (
386386 'code block without syntax highlighting' ,
387387 "```\n verb\n atim\n ```" ,
388388 expectedText: 'verb\n atim' ,
@@ -394,7 +394,7 @@ class ContentExample {
394394 ]),
395395 ]);
396396
397- static final codeBlockHighlightedShort = ContentExample (
397+ static const codeBlockHighlightedShort = ContentExample (
398398 'code block with syntax highlighting' ,
399399 "```dart\n class A {}\n ```" ,
400400 expectedText: 'class A {}' ,
@@ -415,7 +415,7 @@ class ContentExample {
415415 ]),
416416 ]);
417417
418- static final codeBlockHighlightedMultiline = ContentExample (
418+ static const codeBlockHighlightedMultiline = ContentExample (
419419 'code block, multiline, with syntax highlighting' ,
420420 '```rust\n fn main() {\n print!("Hello ");\n\n print!("world!\\ n");\n }\n ```' ,
421421 expectedText: 'fn main() {\n print!("Hello ");\n\n print!("world!\\ n");\n }' ,
@@ -466,7 +466,7 @@ class ContentExample {
466466 ]),
467467 ]);
468468
469- static final codeBlockSpansWithMultipleClasses = ContentExample (
469+ static const codeBlockSpansWithMultipleClasses = ContentExample (
470470 'code block spans with multiple CSS classes' ,
471471 '```yaml\n - item\n ```' ,
472472 expectedText: '- item' ,
@@ -499,18 +499,22 @@ class ContentExample {
499499 'code block, with syntax highlighting and highlighted lines' ,
500500 '```\n ::markdown hl_lines="2 4"\n # he\n ## llo\n ### world\n ```' ,
501501 '<div class="codehilite"><pre>'
502- '<span></span><code>::markdown hl_lines="2 4"\n '
503- '<span class="hll"><span class="gh"># he</span>\n '
504- '</span><span class="gu">## llo</span>\n '
505- '<span class="hll"><span class="gu">### world</span>\n '
506- '</span></code></pre></div>' , [
507- // TODO: Fix this, see comment under `CodeBlockSpanType.highlightedLines` case in lib/model/content.dart.
508- blockUnimplemented ('<div class="codehilite"><pre>'
509- '<span></span><code>::markdown hl_lines="2 4"\n '
510- '<span class="hll"><span class="gh"># he</span>\n '
511- '</span><span class="gu">## llo</span>\n '
512- '<span class="hll"><span class="gu">### world</span>\n '
513- '</span></code></pre></div>' ),
502+ '<span></span>'
503+ '<code>'
504+ '::markdown hl_lines="2 4"\n '
505+ '<span class="hll">'
506+ '<span class="gh"># he</span>\n </span>'
507+ '<span class="gu">## llo</span>\n '
508+ '<span class="hll">'
509+ '<span class="gu">### world</span>\n </span></code></pre></div>' , [
510+ CodeBlockNode ([
511+ CodeBlockSpanNode (text: '::markdown hl_lines="2 4"\n ' , spanTypes: [CodeBlockSpanType .text]),
512+ CodeBlockSpanNode (text: '# he' , spanTypes: [CodeBlockSpanType .highlightedLines, CodeBlockSpanType .genericHeading]),
513+ CodeBlockSpanNode (text: '\n ' , spanTypes: [CodeBlockSpanType .highlightedLines]),
514+ CodeBlockSpanNode (text: '## llo' , spanTypes: [CodeBlockSpanType .genericSubheading]),
515+ CodeBlockSpanNode (text: '\n ' , spanTypes: [CodeBlockSpanType .text]),
516+ CodeBlockSpanNode (text: '### world' , spanTypes: [CodeBlockSpanType .highlightedLines, CodeBlockSpanType .genericSubheading]),
517+ ]),
514518 ]);
515519
516520 static final codeBlockWithUnknownSpanType = ContentExample (
@@ -524,7 +528,7 @@ class ContentExample {
524528 '\n </code></pre></div>' ),
525529 ]);
526530
527- static final codeBlockFollowedByMultipleLineBreaks = ContentExample (
531+ static const codeBlockFollowedByMultipleLineBreaks = ContentExample (
528532 'blank text nodes after code blocks' ,
529533 ' code block.\n\n some content' ,
530534 // https://chat.zulip.org/#narrow/stream/7-test-here/near/1774823
@@ -2060,7 +2064,7 @@ void main() async {
20602064 // "1. > ###### two\n > * three\n\n four"
20612065 '<ol>\n <li>\n <blockquote>\n <h6>two</h6>\n <ul>\n <li>three</li>\n '
20622066 '</ul>\n </blockquote>\n <div class="codehilite"><pre><span></span>'
2063- '<code>four\n </code></pre></div>\n\n </li>\n </ol>' , [
2067+ '<code>four\n </code></pre></div>\n\n </li>\n </ol>' , const [
20642068 OrderedListNode (start: 1 , [[
20652069 QuotationNode ([
20662070 HeadingNode (level: HeadingLevel .h6, links: null , nodes: [TextNode ('two' )]),
0 commit comments