def parse(self, source):
rt, title, title_pic, markdown = libparser.parse(source)<EOL>if rt == -<NUM_LIT:1>:<EOL><INDENT>raise SeparatorNotFound<EOL><DEDENT>elif rt == -<NUM_LIT:2>:<EOL><INDENT>raise PostTitleNotFound<EOL><DEDENT>title, title_pic, markdown = map(to_unicode, (title, title_pic,<EOL>markdown))<EOL>html = self.markdown.render(markdown)<EOL>summary = self.markdown.render(markdown[:<NUM_LIT:200>])<EOL>return {<EOL>'<STR_LIT:title>': title,<EOL>'<STR_LIT>': markdown,<EOL>'<STR_LIT:html>': html,<EOL>'<STR_LIT>': summary,<EOL>'<STR_LIT>': title_pic<EOL>}<EOL>
Parse ascii post source, return dict