Markdown parser implemented in Haskell using the Megaparsec library.
To use the Markdown Parser, follow these simple steps:
-
Clone the Repository:
git clone https://github.com/your-username/markdown-parser.git
-
Build the Project:
cd markdown-parser cabal build
-
Run the Parser:
cabal run
-
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>
- Indentation-sensitive Parsing
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!