Merge pull request #1035 from jcb91/tch

[toc2] alter ToC cell source to work better with collapsible_headings
This commit is contained in:
Jean-François Bercher
2017-08-19 17:18:08 +02:00
committed by GitHub
@@ -531,7 +531,7 @@ var table_of_contents = function (cfg,st) {
}
//process_cell_toc();
var cell_toc_text = "# Table of Contents\n <p>";
var cell_toc_text = " # Table of Contents\n";
var depth = 1; //var depth = ol_depth(ol);
var li= ul;//yes, initialize li with ul!
var all_headers= $("#notebook").find(":header");