Files
pipelines/app/tool/chat_table_wrap_probe.dart
T
alan 99f7edc0ec Keep numbered lists counting across nested items and blank lines
A list ended at the first line that was not an item, so a numbered list
with nested bullets, wrapped lines or blank lines between items became
one-item lists that each showed 1. Lists now nest (an item holds the
blocks indented under it), continue across blank lines, join wrapped
lines, and number from their first item.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-21 20:39:39 +00:00

52 lines
1.4 KiB
Dart

import 'package:flutter/material.dart';
import 'package:pipelines_app/features/chat/ui/transcript/chat_markdown_view.dart';
const _sample = '''
Numbered steps with nested details and blank lines keep counting:
1. Install the server
- needs Docker
- takes a few minutes
2. Sign in
- open the web app
3. Start a chat
A wide table wraps its cells to the transcript width instead of scrolling:
| Stage | What it does | Result | Owner |
| --- | --- | --- | --- |
| implement | Writes the focused change in its own worktree and runs the area tests before handing off to review | passed | Luna |
| review | Reads the actual diff, checks regressions, and asks for fixes when the change misses the requested behaviour | changes requested | reviewer |
| land | Merges into main after checks, then verifies ancestry | pending | manager |
A long token breaks inside its cell:
| Path | Note |
| --- | --- |
| app/lib/features/chat/ui/transcript/chat_markdown_view_with_a_very_long_name.dart | short |
A narrow table keeps its content width:
| a | b |
| --- | --- |
| 1 | 2 |
''';
/// Markdown tables at the window width, for a wrap capture.
void main() {
runApp(
MaterialApp(
theme: ThemeData(brightness: Brightness.dark),
home: Scaffold(
body: ListView(
padding: const EdgeInsets.all(16),
children: const [ChatMarkdownView(text: _sample)],
),
),
),
);
}