Exemple #1
0
 def _process_desc(self, post):
     if post["desc"] is None:
         desc_tmp = post["body"]
     else:
         desc_tmp = post["desc"]
     desc_tmp = lamark(desc_tmp,
             self.output_dir,
             post["permalink"],
             1500,
             self.blog_url,
             False
             )
     desc_tmp = markdown.markdown(
             desc_tmp,
             ['fenced_code', ' codehilite'])
     return desc_tmp
Exemple #2
0
 def process(self, post_list, post, post_num):
     if post['type'] not in ['page', 'post']:
         return post
     body = post["html_body"]
     post["html_body"] = lamark(body, self.output_dir, post["permalink"], 1500)
     return post