This project is a simple Markdown Renderer built with PHP and JavaScript. It allows you to input Markdown text directly or upload a Markdown file, and it will render the Markdown to HTML.
![](https://private-user-images.githubusercontent.com/91200978/311900030-a967b43c-3f8c-462d-824c-5cb209b5ad95.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjUzNDkwMzYsIm5iZiI6MTcyNTM0ODczNiwicGF0aCI6Ii85MTIwMDk3OC8zMTE5MDAwMzAtYTk2N2I0M2MtM2Y4Yy00NjJkLTgyNGMtNWNiMjA5YjVhZDk1LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA5MDMlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwOTAzVDA3MzIxNlomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWFlZTg3NzNkNjcwZTFmNmQ2YjM0NmI5ZmIwNjllNjU3MzVjNDEyMDU3NGQ5NGY2NmI3MmYzNDM4ODg4OTM0OTYmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.-T2tdENTMqCR8WlYzRQgNFwfOa4kTMEMjkSJmnS-NG8)
- Input Markdown text directly into the text area
- Upload a Markdown file to be rendered
- Rendered Markdown is sanitized to prevent XSS attacks
- Copy the rendered HTML to clipboard
- Download the raw Markdown or the rendered HTML
- Clone the repository
- Run
composer install
to install the required PHP dependencies - Start your PHP server and navigate to the project directory
- Parsedown for parsing Markdown to HTML
- HTMLPurifier for sanitizing the HTML output
- DOMPurify for sanitizing the HTML on the client side
This project is licensed under the MIT License.