A simple, fast web-based tool to convert HTML content into Markdown format. The converter is built with Next.js, React, and TailwindCSS, ensuring modern design and smooth user experience.
- Real-time Conversion: Automatically converts HTML input into Markdown as you type.
- Clear and Copy Options:
- Clear both input and output fields with a single click.
- Copy Markdown output to the clipboard effortlessly.
- Dark and Light Mode: Seamlessly adapts to your system's theme preference.
- Modern UI: Powered by TailwindCSS for a sleek and accessible interface.
Check out the live demo of the converter: Live Demo
Follow these steps to get the project running locally:
-
Clone the repository:
git clone https://github.com/pooulad/html2markdown.git cd html2markdown
-
Install dependencies::
yarn install
-
Run the development server::
yarn dev
-
Open http://localhost:3000 in your browser.:
- Enter or paste your HTML code in the HTML Input text area.
- View the converted Markdown in the Markdown Output text area.
- Use the Copy button to copy the Markdown to your clipboard.
- Use the Clear All button to reset the input and output fields.
- Next.js: For building the React-based application.
- React: For the user interface.
- TailwindCSS: For modern styling.
- Turndown.js: For converting HTML to Markdown.
- @nextui-org: For add fast and modern React UI Library.
- @next-mdx: For render mdx file in nextjs project.
Contributions are welcome! To contribute:
-
Fork the repository.
-
Create a feature branch:
bash
Copy code
git checkout -b feature-name
-
Commit your changes:
bash
Copy code
git commit -m "Add feature-name"
-
Push to your branch:
bash
Copy code
git push origin feature-name
-
Open a pull request.
This project is licensed under the MIT License.
Markdown is a lightweight markup language that allows you to format plain text into structured documents, like headings, lists, and more.
Markdown is platform-independent, easy to read and write, and can be converted to other formats like HTML or PDF.
Yes! The application is fully responsive and works seamlessly on mobile, tablet, and desktop devices.
- Turndown.js: The core library for converting HTML to Markdown.
- Next.js: The powerful React framework.
- TailwindCSS: For building the stunning UI.