https://github.com/saarikabhasi/markdown-to-html
markd2html is a python package to convert Github Markdown syntax to Html
https://github.com/saarikabhasi/markdown-to-html
markd2html markdown markdown-to-html pypi-package python python-package
Last synced: 28 days ago
JSON representation
markd2html is a python package to convert Github Markdown syntax to Html
- Host: GitHub
- URL: https://github.com/saarikabhasi/markdown-to-html
- Owner: saarikabhasi
- License: mit
- Created: 2021-07-22T02:25:53.000Z (almost 5 years ago)
- Default Branch: main
- Last Pushed: 2021-07-26T18:05:04.000Z (almost 5 years ago)
- Last Synced: 2025-09-22T04:59:54.286Z (8 months ago)
- Topics: markd2html, markdown, markdown-to-html, pypi-package, python, python-package
- Language: Python
- Homepage: https://pypi.org/project/markd2html/
- Size: 42 KB
- Stars: 1
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Markdown to HTML
## 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 md
>>> md.markdown("**Hi**")
'\n
Hi
\n'
```
Command Line Interface
```
$ md -h
usage: Input a file [-h] [-f F]
optional arguments:
-h, --help show this help message and exit
-f F
```
```
$ md -f sample.md > output.html
```