Skip to content

Commit

Permalink
Update parse.py
Browse files Browse the repository at this point in the history
Added title tag

There are also now 3 ways of escaping ( parens ): 

(/ slash escape) --> (slash escape) 
(' apostrophe escape) --> apostrophe escape
(! exclamation escape) --> <!-- exclamation escape -->
  • Loading branch information
153 authored Sep 1, 2018
1 parent 7ddb59c commit 7e80eba
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions parse.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,15 +20,17 @@
"tt", "sup", "sub", "div", "span",
"blockquote", "h1", "h2", "h3", "h4",
"ul", "ol", "li",
"html", "body", "head"
"html", "body", "head", "title",
"table", "tr", "td", "th"]
arg1 = {"url":"<a href='{0}'>{0}</a>",
"anc":"<a name='{0}'></a>",
"m":"<pre><code>{0}</code></pre>",
"q": "<blockquote>{0}</blockquote>",
"style": "<link rel='stylesheet' type='text/css' href='{0}'>"
"sp": "<span class='spoiler'>{0}</span>",
"/": "&lpar;{0}&rpar;",
"'": "{0}"}
"'": "{0}",
"!": "<!-- {0} -->}
arg2 = {"link":"<a href='{0}'>{1}</a>",
"img":"<img src='{0}' title='{1}'></img>"}
arg3 = {}
Expand Down

0 comments on commit 7e80eba

Please sign in to comment.