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 +1 -1
- package/src/tui/ui/markdown.ts +9 -5
package/package.json
CHANGED
package/src/tui/ui/markdown.ts
CHANGED
|
@@ -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
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
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 ___
|