Skip to main content

markd2html is a package to convert Github Markdown syntax to Html

Project description

Markdown to HTML Package

Description:

A Python package, designed to convert the Github mark down syntax to HTML code.

Supporting Features

  • headings
  • text styling: Bold, Italic, Strikethrough, Bold and italic
  • unordered and ordered lists
  • paragraphs
  • Multiple and Single line Code Blocks
  • Setext for <h1> and <h2> Tags
  • horizontal rule <hr> tag
  • Link text (Hyperlinks)
  • Image links
  • inline code
  • Web links (example: https://www.google.com)
  • accepts html tags <img> inside a <p> tag

*Note: Additional support in progress

Install

python3 -m pip install markdown-to-html

Usage

>>> from markdown2html import md2html
>>> md2html.markdown("**Hello**")
'\n<p><strong>Hello</strong></p>\n'

Command Line Interface

$ md2html -h
usage: Input a file [-h] [-f F]

optional arguments:
-h, --help  show this help message and exit
-f F
$ md2html -f Alpha.md > Output.html

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

markd2html-0.0.0.tar.gz (9.8 kB view details)

Uploaded Source

Built Distribution

markd2html-0.0.0-py3-none-any.whl (10.5 kB view details)

Uploaded Python 3

File details

Details for the file markd2html-0.0.0.tar.gz.

File metadata

  • Download URL: markd2html-0.0.0.tar.gz
  • Upload date:
  • Size: 9.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.6.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.61.2 CPython/3.9.1

File hashes

Hashes for markd2html-0.0.0.tar.gz
Algorithm Hash digest
SHA256 30a08ea3dd8c5e13c5e4a2073f2e91a2613f4b182990c91736b5af2e0330253a
MD5 32f87c881219492bcc1e20cefe41bfaa
BLAKE2b-256 3694e82b4405d4f6a9f193abca0abdff16123110a4db30c0408df7a3884ac1ed

See more details on using hashes here.

File details

Details for the file markd2html-0.0.0-py3-none-any.whl.

File metadata

  • Download URL: markd2html-0.0.0-py3-none-any.whl
  • Upload date:
  • Size: 10.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.6.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.61.2 CPython/3.9.1

File hashes

Hashes for markd2html-0.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 39dda22faebb456e3cfb33e8217ba0e3bb948f4bd3c501d4b1b2cffb3b3d6b66
MD5 c05cbdf4facfce2bdfa4d81dba29939e
BLAKE2b-256 f4339da3da59fe9833158028fbcd4ce8c916b7f49071ace8ef5ef1b69b99c4e7

See more details on using hashes here.

Supported by

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