Skip to content

A generator for create 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.

Notifications You must be signed in to change notification settings

muhamadzolfaghari/readme-toc-generator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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! 🥳

Table of Contents

Changelog

v1.1.0

  • 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

v1.0.0

  • Initial release

Usage

  1. Run the following command to start the application:
npm run start
  1. Enter the path to your Markdown file when prompted:
Enter markdown path:

Sample path to file

write the path to the file in the following format and press enter.

C:\Users\Muhamad\...\README.md
  1. The application will generate a table of contents for the specified Markdown file and display a success message:
Table of Contents generated successfully!

Error and Exception

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.

Attention before usage

This project is tested in Windows but not tested in Linux or other systems. Feel free to make issues if you face any problems.

About

A generator for create 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.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published