fix(tui): stop heading underline leaking into padding
This commit is contained in:
@@ -505,6 +505,10 @@ export class Markdown implements Component {
|
||||
}
|
||||
}
|
||||
|
||||
while (stylePrefix && result.endsWith(stylePrefix)) {
|
||||
result = result.slice(0, -stylePrefix.length);
|
||||
}
|
||||
|
||||
return result;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user