yes, the conditional postproc is enabled by adding the target between brackets, like in my example (html). This way if you want to remove the special marks for a LaTeX output, add this for example: %!postproc(tex): '\{\{\{warning' ' '
About adding this particular option to txt2tags, it would probably be useful only for html, and I don't think it would be accepted, especially when we can use pre or postproc to add those features. ----- Mail original ----- De : Kevin <kevincox...@gmail.com> À : Forgeot Eric <eforg...@yahoo.fr>; txt2tags mailing list <txt2tags-list@lists.sourceforge.net> Cc : Envoyé le : Dimanche 27 mai 2012 3h57 Objet : Re: [t2t] Re : Custom Sections On 26/05/12 14:15, Forgeot Eric wrote: > I think you can use something like this to achieve your effect: > > %!postproc(html): '\{\{\{warning (.*?)$' '<p class="warning">\1</p>' > > The only problem I see so far is that it will add a double < p > > Yes I could do this but is there any way to do a conditional postproc? Otherwise I am limiting myself to HTML output. That's why I think it would make sense as a language feature because it is cross-target. ------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ _______________________________________________ txt2tags-list mailing list https://lists.sourceforge.net/lists/listinfo/txt2tags-list