Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/tusharad/markdown-parser
Convert markdown text into html
https://github.com/tusharad/markdown-parser
Last synced: about 1 month ago
JSON representation
Convert markdown text into html
- Host: GitHub
- URL: https://github.com/tusharad/markdown-parser
- Owner: tusharad
- License: bsd-3-clause
- Created: 2024-02-28T18:50:51.000Z (11 months ago)
- Default Branch: main
- Last Pushed: 2024-06-01T15:44:32.000Z (8 months ago)
- Last Synced: 2024-06-01T17:55:50.331Z (8 months ago)
- Language: Haskell
- Size: 19.5 KB
- Stars: 3
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# 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:**
```bash
git clone https://github.com/your-username/markdown-parser.git
```2. **Build the Project:**
```bash
cd markdown-parser
cabal build
```3. **Run the Parser:**
```bash
cabal run
```
4. **Send POST request with JSON Data**
```bash
curl -X POST \
-H "Content-Type: application/json" \
-d '{"message": "# Hello\n## There."}' \
http://localhost:3000/toHTML
```
Output: ```Hello.
There.
```## 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!