Skip to content

Commit 1971abf

Browse files
authored
Add a title to the Markdown Preview widget (jupyterlab#14681)
* Add title caption for the markdown preview widget * Use localized label
1 parent 2715840 commit 1971abf

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

packages/markdownviewer/src/widget.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -332,6 +332,7 @@ export class MarkdownViewerFactory extends ABCWidgetFactory<MarkdownDocument> {
332332
content.title.icon = this._fileType?.icon;
333333
content.title.iconClass = this._fileType?.iconClass ?? '';
334334
content.title.iconLabel = this._fileType?.iconLabel ?? '';
335+
content.title.caption = this.label;
335336
const widget = new MarkdownDocument({ content, context });
336337

337338
return widget;

0 commit comments

Comments
 (0)