On 07/18/2014 01:38 PM, Emanuele wrote: > Andrea Pescetti wrote: >> Emanuele wrote: >>> markdown generates plain html without classes and/or other attributes. >>> Bootstrap, on the contrary, requires to assign quite a bit of classes >> >> This is indeed a problem, but our mdtext supports a mix. See this page >> for example (it's a random one I extracted from the repository): >> >> https://svn.apache.org/repos/asf/openjpa/site/trunk/content/migration-tool.mdtext >> >> >> The corresponding "live" version is >> >> http://openjpa.apache.org/migration-tool.html >> >> There you see that they need to pass some CSS classes to it, for >> example '<td class="border">'. They do it by simply embedding the HTML >> in the mdtext. So: maybe there is a way to attach the CSS classes to >> the mdtext, but this would need to be investigated further; however, >> plain HTML can still be used within the file and this should solve >> your problem with prototyping at the moment. > > Okay, good thing that mix markdown and html is possible, though for the > changes required it would basically mean write html anyway... :-\ > > But, digging around a bit I found the site management page of the Apache > project SIS [1] that has a link to a page with more detailed advices on > markdown [2] that helped quite a bit. > > Then, I tried to revive some memories of perl and hacked view.pm and > path.pm adding what was missing. Hope it is acceptable from a "good > practices" point of view. > Attached there is the patch so far (I hope I removed all the debug code > :P) so that you can play with it if you are interested (it's based on > revision r1606933). > > I uploaded at [3] some pages at random to see the general effect and the > /it/ directory to have at least one localized version. > > Opinions are welcome. ;)
Thanks for all this! Some of us can play around in "emulation mode" on our own setups and see what happens. Fun stuff! :) > > > [1] https://sis.apache.org/site-management.html > [2] http://michelf.ca/projects/php-markdown/extra > [3] http://ooo.elkarte.it/ > > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [email protected] > For additional commands, e-mail: [email protected] > -- ------------------------------------------------------------------------- MzK "To be trusted is a greater compliment than being loved." -- George MacDonald --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
