Commits

Martín Mulone committed 344c818

Different way or using markmin

  • Participants
  • Parent commits 621e928

Comments (0)

Files changed (3)

File __init__.pyc

Binary file modified.

File controllers/default.py

 
 import os, glob
 from gluon.template import render
+from gluon.contrib.autolinks import expand_one
 from highlight import PluginHighlight
 
 session.forget()
     extra['inxx'] = lambda code: '<div class="inxx">'+code+'</div>'
     extra['ref'] = lambda code: '[ref:'+code+']'
     # extra['code'] = lambda code: CODE(code,language='web2py').xml()
-    rtn = MARKMIN(text.replace('\r',''),extra=extra,url=url2)
+    #rtn = MARKMIN(text.replace('\r',''),extra=extra,url=url2)
+    rtn = MARKMIN(text, url=True, environment={},
+        autolinks=lambda link: expand_one(link,{}))
     return rtn
 
 

File source_blog/002-My-first-post/extract.markmin

    Field('phone'))
 ``:python
 
+
++ item 1
++ item 2
+-- item 2.1
+-- item 2.2
++ item 3
+
+---------
+col 1 | col 2 | col 3
+col 1 | col 2 | col 3
+col 1 | col 2 | col 3
+---------:table
+
+
+``
+<html><body>example</body></html>
+``:code_html
+
+