We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9586f1b commit 1736dcfCopy full SHA for 1736dcf
app/lib/shared/changelog.dart
@@ -238,7 +238,8 @@ class _MarkdownVisitor extends dom_parsing.TreeVisitor {
238
final indent = ' ' * (_listDepth - 1);
239
_write(indent);
240
if (parent == 'ol') {
241
- _write('1. ');
+ final childIndex = (node.parent?.children.indexOf(node) ?? 0) + 1;
242
+ _write('$childIndex. ');
243
} else {
244
_write('- ');
245
}
app/test/shared/changelog_test.dart
@@ -583,7 +583,7 @@ And:
583
'And:\n'
584
'\n'
585
'1. order\n'
586
- '1. list\n'
+ '2. list\n'
587
588
'> With multiline quoted `code`and *text*.\n'
589
0 commit comments