nihdoc

WIP markup parser (txt -> html)
git clone git://git.alexkarle.com.com/blag
Log | Files | Refs | README | LICENSE

big.html (1367B) [raw]


      1 <h1>hello world</h1>
      2 <p>
      3 This is an example nihdoc file!
      4 </p>
      5 <p>
      6 <em>This should be emphasized within a paragraph</em>
      7 </p>
      8 <p>
      9 <strong>As "should" this bold</strong>
     10 </p>
     11 <p>
     12 <code>and code!</code>
     13 </p>
     14 <h2>Sub Header 2</h2>
     15 <h3>Woah a third header?</h3>
     16 <ul>
     17 <li>
     18 We can have lists??
     19 <ul>
     20 <li>
     21 And nested lists??
     22 </li>
     23 <li>
     24 And <code>code</code> within lists?
     25 </li>
     26 <li>
     27 but not <code>*bold*</code> within code
     28 </li>
     29 </ul>
     30 </li>
     31 <li>
     32 A tier1 item
     33 </li>
     34 </ul>
     35 <p>
     36 This is a new paragraph
     37 that wraps nicely
     38 </p>
     39 <ol>
     40 <li>
     41 This is a numbered list
     42 </li>
     43 <li>
     44 Cool, huh?
     45 <ol>
     46 <li>
     47 yes!
     48 </li>
     49 </ol>
     50 </li>
     51 </ol>
     52 <p>
     53 This is a <em>paragraph</em> <strong>dangit</strong> with
     54 links to <a href="https://alexkarle.com">https://alexkarle.com</a> and
     55 my <a href="gopher://alexkarle.com">gopherhole</a>.
     56 </p>
     57 <blockquote>
     58 <p>
     59  this is a block quote
     60  that wraps!
     61 </p>
     62 </blockquote>
     63 <pre><code>$ this is a code block
     64 $ *bold* and _italics_ and `code` have no effect!
     65 $ git status
     66 $ [ not a link ] !
     67 </code></pre>
     68 <p>
     69 &lt;html&gt; is escaped!
     70 </p>
     71 <p>
     72 cheers!
     73 </p>
     74 <p>
     75 <a href="gopher://alexkarle.com">use <code>sacc(1)</code></a>
     76 </p>
     77 <p>
     78 <a href="https://example.com">this is a link
     79 with a newline!</a>
     80 </p>
     81 <p>
     82 <a href="https://example.com">
     83 this is another link
     84 with a newline!</a>
     85 </p>
     86 <blockquote>
     87 <p>
     88  This is a block quote
     89 </p>
     90 <p>
     91  With two paragraphs!
     92 </p>
     93 </blockquote>