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.2.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.2-py3-none-any.whl (15.8 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for md2wxhtml-0.1.2.tar.gz
Algorithm Hash digest
SHA256 7dbf00be2b1d949bd32b6b2eaf6e6f4f7d244b259f6d8d7b9ac2400dfc9e833c
MD5 0d2f4487d43abd24bab91db2f75174c1
BLAKE2b-256 8b4b4b3954f27ecc30bda75a37cd8d2ca97d9342f1447528147eb7e256c43e95

See more details on using hashes here.

Provenance

The following attestation bundles were made for md2wxhtml-0.1.2.tar.gz:

Publisher: publish.yml on Wenjun-Mao/md2wxhtml

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

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

File metadata

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

File hashes

Hashes for md2wxhtml-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 20f6795d0f8312c6365ce8716549a2a6f611091b0cb7c5a74eac654f9e06464e
MD5 dbacea67adbf3fe5fcdae2d27ad47e07
BLAKE2b-256 54d08b4c6ffa5a7ae1102cc420cdddc33e06309af20fd43b657bcbf5231eaf23

See more details on using hashes here.

Provenance

The following attestation bundles were made for md2wxhtml-0.1.2-py3-none-any.whl:

Publisher: publish.yml on Wenjun-Mao/md2wxhtml

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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