Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2006-10-18 07:36:31

mazso
Member
Registered: 2005-09-29
Posts: 25

sub and chemical formulas

I’m just working at a website where the articles containing many chemical formulas. To display these correctly you need the sub-HMTL-element: O<sub>2</sub> . In Textile it is called by ~. But to get it work there must be whitespaces before the ~ so result would be O <sub>2</sub>

I think it is possible to hack the classTextile.php. But IMO it would also affect other elements like strong, cite, del etc. Would this cause serious problems?

Mazso

Offline

#2 2006-10-18 08:52:45

Mary
Sock Enthusiast
Registered: 2004-06-27
Posts: 6,236

Re: sub and chemical formulas

O[~2~] (mention).

Last edited by Mary (2006-10-18 08:52:59)

Offline

#3 2006-10-18 11:11:41

mazso
Member
Registered: 2005-09-29
Posts: 25

Re: sub and chemical formulas

Mary wrote:

O[~2~] (mention).

Thanks. I forgot.

Mazso

Offline

Board footer

Powered by FluxBB