Skip to main content

Add your description here

Project description

md2wxhtml

A tool to convert Markdown files into a format suitable for WeChat articles, handling general content and code blocks with syntax highlighting.

Features

  • Converts Markdown to HTML.
  • Separates and processes code blocks for syntax highlighting and horizontal scrolling.
  • Merges processed content and code blocks into a single HTML document.

Disclaimer

This project is an independent open-source tool and is not affiliated with, endorsed by, or officially connected to WeChat or Tencent.

Installation

pip install md2wxhtml

Usage

Command-line Interface

md2wxhtml --input <input_file.md> --output <output_file.html>

As a Python Library

from md2wxhtml.core.converter import WeChatConverter

converter = WeChatConverter()
html_output = converter.convert("Your markdown content here.")
print(html_output)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

md2wxhtml-0.1.1.tar.gz (10.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

md2wxhtml-0.1.1-py3-none-any.whl (15.8 kB view details)

Uploaded Python 3

File details

Details for the file md2wxhtml-0.1.1.tar.gz.

File metadata

  • Download URL: md2wxhtml-0.1.1.tar.gz
  • Upload date:
  • Size: 10.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for md2wxhtml-0.1.1.tar.gz
Algorithm Hash digest
SHA256 24488e5ce36a06e1288a74c3118996aea0e863658e3af26c59aee0dcc2862e5d
MD5 93c7f0c632a2c2939dd99d61b0984686
BLAKE2b-256 19bb52a4ec65ad35264e24ce689f3785beb0e0d9a11c8ae043d2b7e8a1560355

See more details on using hashes here.

File details

Details for the file md2wxhtml-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: md2wxhtml-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 15.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for md2wxhtml-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 e46a88f05ca4e89421a094b583f52df269c3ca05c59e3272ba92bc65ba748a43
MD5 592a5788731de221eb3e14457889c06a
BLAKE2b-256 5ed4cf442d384ae5643f5f718f0f04b61f1512c2d8e804da04ba8d61d2f7135a

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page