Textile markup in redmine: bold and italic in a single string -- and escaping!

Added by Friedrich Schiller about 3 years ago

Hi,

is there any better way of achieving the following markup output??

normalbolditalicboldmononormal

I'm using the following markup currently:

A1

normal<notextile></notextile>*bold*<notextile></notextile>_italic_<notextile></notextile>*@boldmono@*<notextile></notextile>normal

identical with

A2

 normal<notextile></notextile>*bold*<notextile></notextile>_italic_<notextile></notextile>*@boldmono@*<notextile></notextile>normal

identical with

A3

  normal<notextile></notextile>*bold*<notextile></notextile>_italic_<notextile></notextile>*@boldmono@*<notextile></notextile>normal

(Basically <notextile></notextile> is used, to divide up the single string into the necessary parts.)


Thanks.



PS: for people interested in escaping: You may be interested to know that the markup used to generate
A1 above, is:

<notextile>
<pre>
normal<notextile></notextile>*bold*<notextile></notextile>_italic_<notextile></notextile>*@boldmono@*<notextile></notextile>normal
</pre>
</notextile>
(note that pre-tags are surrounded by notextile-tags!)


and the markup used to generate
A2 above, is:
@normal&#60;notextile>&#60;/notextile>*bold*&#60;notextile>&#60;/notextile>_italic_&#60;notextile>&#60;/notextile>*&#64;boldmono&#64;*&#60;notextile>&#60;/notextile>normal@



and the markup used to generate
A3 above, is:

<code>
<notextile>
normal<notextile></notextile>*bold*<notextile></notextile>_italic_<notextile></notextile>*@boldmono@*<notextile></notextile>normal
</notextile>
</code>