-
Notifications
You must be signed in to change notification settings - Fork 0
/
md2html.py
63 lines (47 loc) · 1.4 KB
/
md2html.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
#!/usr/local/bin/python
###############################################################################
# 'md2html.py'
#
# About: A simple library to convert basic markdown text to HTML using the 'markup.py'
# library.
#
# Version: 0.01
# Author: Kevin Kelley [[email protected]] (http://thesta.in)
# License: WTFPL
###############################################################################
# Configuration
import markup
###############################################################################
# Code
class Text(object):
def __init__(self):
pass
def __del__(self):
pass
def configure(self, configuration=None):
if configuration is None:
# Error, no configuration provided
pass
if type(configuration) is not type({}):
# Error, configuration is not the correct data type
pass
# List of required configuration items
req = ['', '']
for i in req:
if i not in configuration.keys():
# Error, a required configuration item was not included
pass
# Configure the instance
self.configuration_item = configuration[configuration_item]
return None
def convert(self):
pass
def entity_encode(self):
pass
###############################################################################
# Main
if __name__ == "__main__":
# Add code to support single file conversion from command-line.
pass
###############################################################################
# End