markdown generator
Project description
Installation
$ [sudo] pip install mdown
Functions
function | __doc__ |
---|---|
mdown.code(code, language=None) |
return string with markdown code block |
mdown.header(title, lvl) |
return string with markdown header |
mdown.image(url, link='', title='', alt='') |
return string with markdown image |
mdown.table(headers, matrix) |
return string with markdown table (one-line cells only) |
Examples
header
>>> import mdown
>>> mdown.header("title", 6)
'###### Title'
code
>>> mdown.code("$ [sudo] pip install readme_md", "bash")
# look Install section :)
image
>>> mdown.image("https://domain.com/image.png", title="title text", alt="alt text")
'![alt text](https://domain.com/image.png "title text")'
table
>>> mdown.table(("header1","header2"),(("cell11","cell12"), ("cell21","cell22")))
'header1|header2
-|-
cell11|cell12
cell21|cell22'
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
mdown-2019.3.22.tar.gz
(2.1 kB
view hashes)
Built Distribution
mdown-2019.3.22-py2.py3-none-any.whl
(130.3 kB
view hashes)
Close
Hashes for mdown-2019.3.22-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 09b80b5432741d15545227252c72023f2a0a4365a11b36beb3c87e624a65f38c |
|
MD5 | 4ab7e7b51bd5d6054162930db4fce4e3 |
|
BLAKE2b-256 | 39d96e49df37693ffb27f9c732e1ea104b8331f338ba6d927bd092eb02e1d1ba |