and the markitup js that ships with plugin_wiki has been modified to
support markmin too.

On Aug 3, 3:20 am, mdipierro <mdipie...@cs.depaul.edu> wrote:
> This has been in trunk for some time:
>
> >>> from gluon.html import markmin_serializer
> >>> html='<div><h1>Header</h1><p><a 
> >>> href="http://google.com";>link</a><b>bold</b></div>'
> >>> TAG(html).flatten(markmin_serializer)
>
> '#Header\n\n[[linkhttp://google.com]]**bold**\n\n'
>
> You can use it to convert markdown syntax:
>
> >>> from gluon.contrib.markdown import WIKI
> >>> md = '#Header\n\n[link](http://google.com)*bold*\n\n'
> >>> TAG(WIKI(md).xml()).flatten(markmin_serializer)
>
> "#Header\n\n [[linkhttp://google.com]]''bold''\n\n "
>
> On Aug 3, 3:04 am, Timmie <timmichel...@gmx-topmail.de> wrote:
>
> > > Texy features are very goodhttp://texy.info/en/syntax
> > > but the syntax is ugly...
>
> > > I would like markmin to implement all that features in a beauty way.
>
> > OK, but being able to convert text from other formats (HTML, ODF,
> > wiki) into markmin would be good. Thus I suggest to lean on existing
> > markup.

Reply via email to