Hi, nice to have a new version.
The problems with markmin2html remain, see issue 1671
https://github.com/web2py/web2py/issues/1671

A short summary - an ordered list inside a blockquote does not work:

A controller:


def mmtest():
    t="""

-----------
  This is an ordered list:
  + Item 1
  + Item 2
---------:blockquoteclass[blockquoteid]

"""
    return MARKMIN(t)

​The expected result is:

<blockquote class="blockquoteclass" id="markmin_blockquoteid"><p>This is an
ordered list:</p><ol><li>Item 1</li><li>Item 2</li></ol></blockquote>


But instead I get:​

​
​
<blockquote class="blockquoteclass" id="markmin_blockquoteid">  This is an
ordered list:
  + Item 1
  + Item 2</blockquote>


Why?
Look at line 1212 in
https://github.com/web2py/web2py/blob/master/gluon/
contrib/markmin/markmin2html.py

'\n'.join(strings[bq_begin:lineno]), pp)



If markmin detects a blockquote, it joins the whole text inside and does
nothing else.

Now change this line to

render('\n'.join(strings[bq_begin:lineno])), pp)


and you will get the expected result.

And there is another problem in this new markmin2html.py:
markmin2html needs now gluon and therefore it is not longer a standalone
program.

And: all links in the lines 228 ... 230 do not work. There should be the
actual links.

Regards, Martin

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to