Mark2PY
THIS MODULE HELP YOU FOR WRITING MARKUP (HTM) & MARKDOWN (MD) IN YOUR PYTHON SCRIPT.
start with Mark2PY
For using Mark2PY, just you must PIP it.
> pip install Mark2PY
MarkDown
this module, inclue mistune for showing markdown.
- H1
Mark2PY.MD.H1(text)
This is H1
- H2
Mark2PY.MD.H2(text)
This is H2
- H3
Mark2PY.MD.H3(text)
This is H3
- bold
Mark2PY.MD.bold(text)
This is bold
- italic
Mark2PY.MD.italic(text)
This is italic
- strikethrough
Mark2PY.MD.strikethrough(text)
This is strikethrough
- block quote
Mark2PY.MD.block_quote(text)
This is block quote
- unordered list
Mark2PY.MD.unordred_list(*args)
- This
- is
- unordred
- List
- ordered list
Mark2PY.MD.ordered_list(*args)
- This
- is
- ordered
- list
- horizontal rule
Mark2PY.MD.horizontal_rule()
:
- Link
M2P.MD.link(title, href)
This is link
MarkUp
Will be enable
Example
import Mark2PY
Mark2PY.MD.bold("Hello")
Mark2PY.run("MD")
>>> <html><em>Hello</em></html>
Author
this module is created by AMJoshaghani An iranian people; for all of python coders :) AMJoshaghani's site
please follow me on GitHub
god is so merciful! AMJoshaghani