| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Name | Name | Last commit date | ||
|---|---|---|---|---|
A minimal Python package to convert Markdown files to clean, responsive HTML with Tailwind CSS, MathJax, and beautiful typography.
Ideal for note-taking, documentation, and publishing markdown content as styled web pages.
sudo apt update
sudo apt install -y \
libavif13 \
libgstreamer-plugins-base1.0-0 \
gstreamer1.0-plugins-base \
gstreamer1.0-plugins-good \
gstreamer1.0-libav \
libgstreamer-gl1.0-0 \
libgstreamer-plugins-bad1.0-0 \
libgstreamer-plugins-base1.0-devsudo dnf install -y \
gstreamer1-plugins-base \
gstreamer1-plugins-good \
gstreamer1-plugins-bad-free \
gstreamer1-libav \
libavifpip install md2allCheck the test_data for the example mardown file and the output HTML and Pdf files.
Sure! Here's a concise and developer-friendly documentation for using the convert_markdown function as part of your Python library (assuming it's installed from PyPI):
Convert a Markdown (.md) file into a styled HTML file with TailwindCSS and MathJax support.
convert_markdown(md_path: str, output_dir="output", output_format="pdf")convert_markdown(md_path: str, output_dir="output", output_format="html")| Name | Type | Description |
|---|---|---|
| md_path | str | Path to the input Markdown file. Can be relative or absolute. |
| output_dir | str | (Optional) Directory to save the converted file. Defaults to input file's directory. |
| output_format | str | (Optional) Set to "html" to output HTML. Default is "pdf", but PDF is not implemented yet. |
from md2all import convert_markdown
# Convert a Markdown file to HTML
output_file = convert_markdown("notes/my_notes.md", output_dir="output", output_format="html")
print("File saved to:", output_file)| Back | FazBrowse Home | New Git URL |