Just an update to the group. It's not a bug, just (me) typing it incorrectly.
This is a very good feature when you want to allow a website editor to add some style to their content. I've got a few simple things in mind. Hopefully to add to the auth.wiki documentation, here is an example: I want to make a few specific customisations available to the website editors: return auth.wiki(render='markmin', extra=dict(custom1=lambda text: '<div id="blahid1">' + text + '</div>', custom2=lambda text: '<div class="blahclass2">' + text + '</div>', custom3=lambda text: '<div class="blahclass3">' + text + '</div>') ) I added the following to my layout.html page, or better still in a css file. <style type="text/css"> #blahid1 {color:green;} .blahclass2 {color:blue; border: 1px solid black; } .blahclass3 {color: steelblue; border: 1px solid orange;} </style> and then edited my page in the auth.wiki editor. The body was: # A H1 Header ## A H2 Header ``Hello1 Custom tagged``:custom1 ``Hello2 Custom tagged``:custom2 -``Custom list also tagged``:custom3 ``Some Python Code ``:python Some more plain text ----- A normal block -----:myblockclass which gives me the following screen (attached). <https://lh4.googleusercontent.com/-WblLlpW7QqA/ULaNML_x3ZI/AAAAAAAAAAc/vI-TDMcSkFg/s1600/Screen+Shot+29-11-12+at+11.15.19+AM.png> Not very pretty (yet) but it proves how to add extra customised style to your auth.wiki page. I hope to show it in use very soon. On Monday, November 19, 2012 1:15:52 AM UTC+13, Massimo Di Pierro wrote: > > Should work the same. Perhaps this is a bug. Please open a ticket and I > will look asap. > > On Saturday, 17 November 2012 19:21:52 UTC-6, Andrew W wrote: >> >> >> I'm assuming it works differently to the markmin document. I can see >> is adds a class called "custom", but I don't see the lambda function >> working as in: >> >> >>> markmin2html("‘‘aaa‘‘:custom", extra=dict(custom=lambda text: >> ’x’+text+’x’ >> >> generates >> >> ’xaaax’ >> >> (the ‘‘...‘‘:custom block is rendered by the custom=lambda function >> passed to render). >> >> >> --