Skip to content

Commit

Permalink
Rebase
Browse files Browse the repository at this point in the history
  • Loading branch information
msujew committed Aug 5, 2024
1 parent 2a440e6 commit 525677b
Showing 1 changed file with 1 addition and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -82,21 +82,14 @@ function MarkdownCell({ markdownRenderer, monacoServices, cell, notebookModel, n
}
return searchInMarkdown(instance, options);
};
const selectListener = cell.onDidSelectFindMatch(match => {
markdownContent.scrollIntoView({
behavior: 'instant',
block: 'center',
});
});
return () => {
selectListener.dispose();
cell.onMarkdownFind = undefined;
instance.unmark();
};
}
}, [editMode, cell.source]);

let markdownContent: HTMLElement = React.useMemo(() => {
let markdownContent: HTMLElement[] = React.useMemo(() => {
const markdownString = new MarkdownStringImpl(cell.source, { supportHtml: true, isTrusted: true });
const rendered = markdownRenderer.render(markdownString).element;
const children: HTMLElement[] = [];
Expand Down

0 comments on commit 525677b

Please sign in to comment.