Beispiel #1
0
    def create_html(self):
        """
		Process the input content as markdown 
		"""
        from cgi import escape

        self.html = markdown(escape(self.content))
Beispiel #2
0
	def preview(self):
		self.require_admin('/blog/add')
		self.content = self.params.get('content', None)
		self.html = markdown(self.params.get('content', None))
		self.title = self.params.get('title', None)
		self.slug = self.params.get('slug', None)
		self.key = self.params.get('key', None)
		self.tags = self.params.get('tags', None)
Beispiel #3
0
	def create_html(self):
		"""Process the input content as markdown """
		self.html = markdown(self.content)