Readme TOC Generator v1.1.0🧬
An generator for creating a table of contents for Markdown files.
After specifying the input file, an output file named README-TOC.md is automatically generated in the same directory as the input file, containing the generated table of contents.
The table of contents for this Markdown file is automatically generated by this project! 🥳
- Added support for numbered headings
- Improved error handling and user interface for file input
- Added support for generating table of contents for nested headings
- Fixed issue with incorrect indentation for nested headings
- Initial release
- Run the following command to start the application:
npm run start
- Enter the path to your Markdown file when prompted:
Enter markdown path:
write the path to the file in the following format and press enter.
C:\Users\Muhamad\...\README.md
- The application will generate a table of contents for the specified Markdown file and display a success message:
Table of Contents generated successfully!
If the specified file cannot be accessed or found, the application will throw an error. Additionally, if the application is unable to write the generated table of contents to the file, it will also throw an error.
This project is tested in Windows but not tested in Linux or other systems. Feel free to make issues if you face any problems.