Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Updated docs

  • Loading branch information...
commit 443a08836843034f58371d643298acbc66d4ea28 1 parent 0479cfd
Alex Young authored
Showing with 5 additions and 90 deletions.
  1. +5 −5 README.textile
  2. +0 −85 test.html
View
10 README.textile
@@ -10,19 +10,19 @@ h3. Usage
In a Node project:
-<code>
+<pre>
var textile = require('stextile');
textile('h1. A header');
-</code>
+</pre>
In the shell:
-<code>
-stextile file.textile
+<pre>
+$ stextile file.textile
# HTML printed to stdout
-</code>
+</pre>
h3. TO-DO
View
85 test.html
@@ -1,85 +0,0 @@
-<h2 style="color:green">This is a title</h2>
-<h3>This is a subhead</h3>
-<p style="color:red">This is some text of &#8216;dubious character&#8217;. Isn&#8217;t the use of &#8220;quotes&#8221; just lazy writing &#8212; and theft of &#8216;intellectual property&#8217; besides? I think the time has come to see a block quote.</p>
-<blockquote lang="fr">This is a block quote. I&#8217;ll admit it&#8217;s not the most exciting block quote ever devised.</blockquote>
-<p>Simple list:</p>
-<ol>
-<li style="color:blue">one </li>
-<li>two </li>
-<li>three</li>
-</ol>
-<p>Multi&#8211;level list:</p>
-<ol>
-<li>one <ol>
-<li>aye </li>
-<li>bee </li>
-<li>see </li>
-</ol><li>two <ol>
-<li>x </li>
-<li>y </li>
-</ol><li>three</li>
-</ol>
-<p>Mixed list:</p>
-<ul>
-<li>Point one </li>
-<li>Point two <ol>
-<li>Step 1 </li>
-<li>Step 2 </li>
-<li>Step 3 </li>
-</ol><li>Point three <ul>
-<li>Sub point 1 </li>
-<li>Sub point 2</li>
-</ul>
-</li>
-</ul>
-<p>Well, that went well. How about we insert an <a href="/" title="watch out">old-fashioned hypertext link</a>? Will the quote marks in the tags get messed up? No!</p>
-<p><a title="optional title" href="http://www.textism.com">This is a link</a></p>
-<p>This is a simple table:</p>
-<table>
-<tr>
-<td>A</td><td><em>B</em></td><td>C</td></tr>
-<tr>
-<td>D</td><td><strong>E</strong></td><td>F</td></tr>
-</table>
-<p>This table has a rowspan:</p>
-<table>
-<tr>
-<td>A</td><td colspan="2">C</td></tr>
-<tr>
-<td>D</td><td rowspan="2">E </td><td>F</td></tr>
-</table>
-<table style="border:1px solid black">
-<tr>
-<th>this</th><th>is</th><th>a</th><th>header</th></tr>
-<tr class="test" style="background:gray" lang="en">
-<td colspan="2">this is</td><td style="background:red;width:200px">a</td><td style="height:200px;vertical-align: top">row</td></tr>
-<tr class="bob" id="bob" style="padding:10px">
-<td>this</td><td style="padding:10px;text-align: left">is</td><td style="vertical-align: top">another</td><td class="bob" id="bob" style="text-align: right">row</td></tr>
-</table>
-<p>An image:</p>
-<p><img src="http://dailyjs.com/images/posts/d3.jpg" alt="optional alt text" /></p>
-<ol>
-<li>Librarians rule </li>
-<li>Yes they do </li>
-<li>But you knew that</li>
-</ol>
-<p>Some more text of dubious character. Here is some string of CAPITAL letters. Here is something we want to <em>emphasize</em>. </p>
-<p>That was a linebreak. And something to indicate <strong>strength</strong>. Of course I could use <em>my own HTML tags</em> if I <strong>felt</strong> like it.</p>
-<h3>Coding</h3>
-<p>This <code>is some code, "isn't it"</code>. Watch those quote marks! Now for some preformatted text:</p>
-<pre>
-<code>
- $text = str_replace("&lt;p&gt;%::%&lt;/p&gt;","",$text);
- $text = str_replace("%::%&lt;/p&gt;","",$text);
- $text = str_replace("%::%","",$text);
-</code>
-</pre>
-<p>This isn&#8217;t code.</p>
-<p>So you see, my friends:</p>
-<ul>
-<li>The time is now </li>
-<li>The time is not later </li>
-<li>The time is not yesterday </li>
-<li>We must act </li>
-</ul>
-
Please sign in to comment.
Something went wrong with that request. Please try again.