Textile - convert text to XHTML
Posted: Fri Feb 27, 2004 4:47 pm
Hello all,
I'd like to see a macro (or similar plugin) to work like Textile:
http://textism.com/tools/textile/?sample=2
Basically, Textile converts simple tags (like BBcode) and produces valid XHTML.
For example, it turns this text:
into valid XHTML:
At present, it's only available as a script (PHP? JS?) but it should be do-able in TextPad.
Any ideas on how to start?
regards,
Ben
I'd like to see a macro (or similar plugin) to work like Textile:
http://textism.com/tools/textile/?sample=2
Basically, Textile converts simple tags (like BBcode) and produces valid XHTML.
For example, it turns this text:
Code: Select all
* Point one
* Point two
## Step 1
## Step 2
## Step 3
* Point three
** Sub point 1
** Sub point 2
Code: Select all
<ul>
<li>Point one</li>
<li>Point two
<ol>
<li>Step 1</li>
<li>Step 2</li>
<li>Step 3</li>
</ol>
</li>
<li>Point three
<ul>
<li>Sub point 1</li>
<li>Sub point 2</li>
</ul></li>
</ul>
Any ideas on how to start?
regards,
Ben