Skip to content

tusharad/markdown-parser

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Markdown Parser in Haskell

Markdown parser implemented in Haskell using the Megaparsec library.

Instructions

To use the Markdown Parser, follow these simple steps:

  1. Clone the Repository:

    git clone https://github.com/your-username/markdown-parser.git
  2. Build the Project:

    cd markdown-parser
    cabal build
  3. Run the Parser:

    cabal run
  4. Send POST request with JSON Data

    curl -X POST \
    -H "Content-Type: application/json" \
    -d '{"message": "# Hello\n## There."}' \
    http://localhost:3000/toHTML

    Output: <h1>Hello. </h1> <h2>There. </h2>

Things to Work On

  • Indentation-sensitive Parsing

Contributing

If you'd like to contribute to the Markdown Parser project, please feel free to fork the repository, make your changes, and submit a pull request. Your contributions are valuable and appreciated!

About

Convert markdown text into html

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published