Skip to content

Commit 3801417

Browse files
authored
Merge pull request #1035 from jcb91/tch
[toc2] alter ToC cell source to work better with collapsible_headings
2 parents a525f3a + 5c2eae9 commit 3801417

File tree

1 file changed

+1
-1
lines changed
  • src/jupyter_contrib_nbextensions/nbextensions/toc2

1 file changed

+1
-1
lines changed

src/jupyter_contrib_nbextensions/nbextensions/toc2/toc2.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -531,7 +531,7 @@ var table_of_contents = function (cfg,st) {
531531
}
532532
//process_cell_toc();
533533

534-
var cell_toc_text = "# Table of Contents\n <p>";
534+
var cell_toc_text = " # Table of Contents\n";
535535
var depth = 1; //var depth = ol_depth(ol);
536536
var li= ul;//yes, initialize li with ul!
537537
var all_headers= $("#notebook").find(":header");

0 commit comments

Comments
 (0)