Skip to content

v1.1.0 - Enhance build function

Compare
Choose a tag to compare
@heyodai heyodai released this 22 Oct 01:32
· 2 commits to main since this release
70d1b34

Enhance build function to provide more flexible Table of Contents generation

  • Add parameters for controlling the depth of headings, enabling/disabling hyperlinks, and printing the ToC.
  • Handle FileNotFoundError for invalid notebook paths.
  • Update function documentation.
  • Replace fixed indentation with dynamic spacing based on heading level.
  • Split Markdown cells into lines to capture all headings.
  • Add unit test for build function in jupyter_toc package
  • Update README to reflect new code

This update allows for greater flexibility in generating a table of contents for Jupyter notebooks. The function now supports customizable heading depth, optional hyperlinking, and can either display or return the ToC as a Markdown-formatted string.