Skip to content

dhanush-ninja/md-to-html-tailwindcss

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Markdown to HTML Converter using Tailwind CSS

This project is a simple Markdown to HTML converter that utilizes Tailwind CSS for styling.

Usage

Below is an example of how to use the converter:

markdown_content = """markdown
# Title
## Subtitle
Some text here.
- Item 1
- Item 2
"""

converter = Converter()
converted_html = converter.convert_md_to_html(markdown_content)

# Print or use the converted HTML
print(converted_html)

Features

  • Converts Markdown content to HTML
  • Uses Tailwind CSS for styling

Installation

To install the required dependencies, run:

pip install -r requirements.txt

Running the Converter

To use the converter, create an instance of the Converter class and call the convert_md_to_html method with your Markdown content.

Example

markdown_content = """markdown
# Title
## Subtitle
Some text here.
- Item 1
- Item 2
"""

converter = Converter()
converted_html = converter.convert_md_to_html(markdown_content)

# Print or use the converted HTML
print(converted_html)

Contributing

Contributions are welcome! Please fork the repository and submit a pull request.

License

This project is licensed under the MIT License.

About

This project is a simple Markdown to HTML converter that utilizes Tailwind CSS for styling.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages