A simple web-based tool to convert Markdown to HTML. This app is built using React and runs in the browser. It provides an easy-to-use interface with two text areas, where you can paste your Markdown source (left) and convert it to HTML (right). Meantime, the HTML will be previewed on the page.
- Markdown to HTML Conversion: Convert Markdown to HTML.
- Dark Mode: Toggle between light and dark modes for better readability.
- Tab Support: Properly inserts spaces when pressing the "Tab" key inside text areas.
- Simple and Intuitive UI: Easy to use with a clean interface.
- Deploy Easily:
npm run build
andnpm run deploy
- Previewer The tool provides a real-time HTML previewer for the given markdown source.
You can try the live demo of this tool at Github Page: Markdown-to-HTML Converter
Here is a similar markdown/html previewer online tool with Markdown API that was developed a while ago.
To run the tool locally:
-
Clone the repository:
git clone https://github.com/doctorlai/markdown-html-converter.git cd markdown-html-converter
-
Install dependencies:
npm install
-
Start the development server:
npm run dev
-
Tests:
npm run test
-
Format Code: Use
prettier --check
orprettier --write
to check or format the code.npm run format ## fix the code style automatically npm run format:fix
-
Visit http://localhost:5173/markdown-html-converter/ to start using the tool locally.
- Enter Markdown source in the Markdown input box.
- Click "Convert →" to convert the Markdown to HTML.
You can also switch between Light Mode and Dark Mode by clicking the button on the top right corner.
Feel free to fork this project and submit issues or pull requests for improvements!
- Fork the repository.
- Create a feature branch:
git checkout -b feature-branch
. - Commit your changes:
git commit -am 'Add new feature'
. - Push to the branch:
git push origin feature-branch
. - Open a pull request.
This project is licensed under the MIT License - see the LICENSE file for details.
Here is the AI generated wiki