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.
v1