[t2t] Re : Re : Custom Sections
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 À : Forgeot Eric ; txt2tags mailing list 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 (.*?)$' '\1' > > 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
[t2t] Re : Re : Custom Sections
To avoid the problem of the double < p >, you can also use a div class instead of a p class, it's what I usually do in fact. - Mail original - De : Forgeot Eric À : txt2tags mailing list Cc : Envoyé le : Samedi 26 mai 2012 20h15 Objet : [t2t] Re : Custom Sections I think you can use something like this to achieve your effect: %!postproc(html): '\{\{\{warning (.*?)$' '\1' The only problem I see so far is that it will add a double < p > > > I hope you understand what I am going for. According to my proposed > syntax it would be written like so. > > ~~~ > This piece of software does things. > > {{{warning There is a small chance that it will kill your cat, use > with caution. > ~~~ -- 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 -- 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