@@ -375,7 +375,7 @@ class ContentExample {
375375 QuotationNode ([ParagraphNode (links: null , nodes: [TextNode ('words' )])])
376376 ]);
377377
378- static final codeBlockPlain = ContentExample (
378+ static const codeBlockPlain = ContentExample (
379379 'code block without syntax highlighting' ,
380380 "```\n verb\n atim\n ```" ,
381381 expectedText: 'verb\n atim' ,
@@ -387,7 +387,7 @@ class ContentExample {
387387 ]),
388388 ]);
389389
390- static final codeBlockHighlightedShort = ContentExample (
390+ static const codeBlockHighlightedShort = ContentExample (
391391 'code block with syntax highlighting' ,
392392 "```dart\n class A {}\n ```" ,
393393 expectedText: 'class A {}' ,
@@ -408,7 +408,7 @@ class ContentExample {
408408 ]),
409409 ]);
410410
411- static final codeBlockHighlightedMultiline = ContentExample (
411+ static const codeBlockHighlightedMultiline = ContentExample (
412412 'code block, multiline, with syntax highlighting' ,
413413 '```rust\n fn main() {\n print!("Hello ");\n\n print!("world!\\ n");\n }\n ```' ,
414414 expectedText: 'fn main() {\n print!("Hello ");\n\n print!("world!\\ n");\n }' ,
@@ -459,7 +459,7 @@ class ContentExample {
459459 ]),
460460 ]);
461461
462- static final codeBlockSpansWithMultipleClasses = ContentExample (
462+ static const codeBlockSpansWithMultipleClasses = ContentExample (
463463 'code block spans with multiple CSS classes' ,
464464 '```yaml\n - item\n ```' ,
465465 expectedText: '- item' ,
@@ -492,18 +492,22 @@ class ContentExample {
492492 'code block, with syntax highlighting and highlighted lines' ,
493493 '```\n ::markdown hl_lines="2 4"\n # he\n ## llo\n ### world\n ```' ,
494494 '<div class="codehilite"><pre>'
495- '<span></span><code>::markdown hl_lines="2 4"\n '
496- '<span class="hll"><span class="gh"># he</span>\n '
497- '</span><span class="gu">## llo</span>\n '
498- '<span class="hll"><span class="gu">### world</span>\n '
499- '</span></code></pre></div>' , [
500- // TODO: Fix this, see comment under `CodeBlockSpanType.highlightedLines` case in lib/model/content.dart.
501- blockUnimplemented ('<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>' ),
495+ '<span></span>'
496+ '<code>'
497+ '::markdown hl_lines="2 4"\n '
498+ '<span class="hll">'
499+ '<span class="gh"># he</span>\n </span>'
500+ '<span class="gu">## llo</span>\n '
501+ '<span class="hll">'
502+ '<span class="gu">### world</span>\n </span></code></pre></div>' , [
503+ CodeBlockNode ([
504+ CodeBlockSpanNode (text: '::markdown hl_lines="2 4"\n ' , spanTypes: [CodeBlockSpanType .text]),
505+ CodeBlockSpanNode (text: '# he' , spanTypes: [CodeBlockSpanType .highlightedLines, CodeBlockSpanType .genericHeading]),
506+ CodeBlockSpanNode (text: '\n ' , spanTypes: [CodeBlockSpanType .highlightedLines]),
507+ CodeBlockSpanNode (text: '## llo' , spanTypes: [CodeBlockSpanType .genericSubheading]),
508+ CodeBlockSpanNode (text: '\n ' , spanTypes: [CodeBlockSpanType .text]),
509+ CodeBlockSpanNode (text: '### world' , spanTypes: [CodeBlockSpanType .highlightedLines, CodeBlockSpanType .genericSubheading]),
510+ ]),
507511 ]);
508512
509513 static final codeBlockWithUnknownSpanType = ContentExample (
@@ -517,7 +521,7 @@ class ContentExample {
517521 '\n </code></pre></div>' ),
518522 ]);
519523
520- static final codeBlockFollowedByMultipleLineBreaks = ContentExample (
524+ static const codeBlockFollowedByMultipleLineBreaks = ContentExample (
521525 'blank text nodes after code blocks' ,
522526 ' code block.\n\n some content' ,
523527 // https://chat.zulip.org/#narrow/stream/7-test-here/near/1774823
@@ -2099,7 +2103,7 @@ void main() async {
20992103 // "1. > ###### two\n > * three\n\n four"
21002104 '<ol>\n <li>\n <blockquote>\n <h6>two</h6>\n <ul>\n <li>three</li>\n '
21012105 '</ul>\n </blockquote>\n <div class="codehilite"><pre><span></span>'
2102- '<code>four\n </code></pre></div>\n\n </li>\n </ol>' , [
2106+ '<code>four\n </code></pre></div>\n\n </li>\n </ol>' , const [
21032107 OrderedListNode (start: 1 , [[
21042108 QuotationNode ([
21052109 HeadingNode (level: HeadingLevel .h6, links: null , nodes: [TextNode ('two' )]),
0 commit comments