Skip to content

Commit

Permalink
Merge pull request #5918 from AlbertHilb/MarkdownViewerFix
Browse files Browse the repository at this point in the history
Use `MarkdownDocument` as document widget for `MarkdownViewer`.
  • Loading branch information
ian-r-rose committed Jan 29, 2019
2 parents 0c68ae2 + 3df8b6e commit 930420a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/markdownviewer/src/widget.ts
Expand Up @@ -312,7 +312,7 @@ export class MarkdownViewerFactory extends ABCWidgetFactory<MarkdownDocument> {
const content = new MarkdownViewer({ context, renderer });
content.title.iconClass = this._fileType.iconClass;
content.title.iconLabel = this._fileType.iconLabel;
const widget = new DocumentWidget({ content, context });
const widget = new MarkdownDocument({ content, context });

return widget;
}
Expand Down

0 comments on commit 930420a

Please sign in to comment.