Skip to content

Commit

Permalink
[collapsible_headings] update *all* headings on markdown rendering
Browse files Browse the repository at this point in the history
fixes #1082
  • Loading branch information
jcb91 committed Sep 25, 2017
1 parent 862c6b3 commit 9f9a68c
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -918,7 +918,11 @@

function callback_markdown_rendered (evt, data) {
update_heading_cell_status(data.cell);
update_collapsed_headings(params.show_section_brackets ? undefined : data.cell);
// we update all headings to avoid pasted headings ending up hidden
// by other pre-existing collapsed headings - see
// https://github.com/ipython-contrib/jupyter_contrib_nbextensions/issues/1082
// for details
update_collapsed_headings();
}

return new Promise (function (resolve, reject) {
Expand Down

0 comments on commit 9f9a68c

Please # to comment.