revspec 0.8.6 → 0.8.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "revspec",
3
- "version": "0.8.6",
3
+ "version": "0.8.7",
4
4
  "description": "Terminal-based spec review tool with real-time AI conversation",
5
5
  "type": "module",
6
6
  "license": "MIT",
@@ -83,13 +83,17 @@ export function parseMarkdownLine(line: string): StyledSegment[] {
83
83
  if (headingMatch) {
84
84
  const level = headingMatch[1].length;
85
85
  const color = level <= 2 ? theme.blue : level === 3 ? theme.mauve : theme.textMuted;
86
+ const prefix = headingMatch[1] + " ";
86
87
  // Parse inline markdown within heading text
87
88
  const inner = parseInlineMarkdown(headingMatch[2]);
88
- return inner.map((s) => ({
89
- ...s,
90
- fg: s.fg ?? color,
91
- attributes: (s.attributes ?? 0) | TextAttributes.BOLD,
92
- }));
89
+ return [
90
+ { text: prefix, fg: theme.textDim, attributes: TextAttributes.BOLD },
91
+ ...inner.map((s) => ({
92
+ ...s,
93
+ fg: s.fg ?? color,
94
+ attributes: (s.attributes ?? 0) | TextAttributes.BOLD,
95
+ })),
96
+ ];
93
97
  }
94
98
 
95
99
  // Horizontal rule: --- or *** or ___