mirror of
https://github.com/wassname/jupyter_contrib_nbextensions.git
synced 2026-09-12 12:31:30 +08:00
toc2: html export -- take into account number_section metadata parameter when exporting
This commit is contained in:
@@ -16,7 +16,7 @@
|
||||
<script>
|
||||
$( document ).ready(function(){
|
||||
var cfg={'threshold':6, // depth of toc (number of levels)
|
||||
'number_sections':true, // sections numbering
|
||||
'number_sections': "{{nb['metadata']['toc']['number_sections']}}"=="True" ? true : false, // sections numbering
|
||||
'toc_cell':false, // useless here
|
||||
'toc_window_display':true, // display the toc window
|
||||
"toc_section_display": "block", // display toc contents in the window
|
||||
|
||||
Reference in New Issue
Block a user