bliper

static html page generation in perl
git clone git://git.2f30.org/bliper
Log | Files | Refs | README | LICENSE

2013-11-10-markdown-notes (1519B)


      1 ### Markdown semantics
      2 
      3 
      4 #### This section covers some basic Markdown syntax.
      5 
      6 Paragraphs, headers, blockquotes
      7 
      8 markdown:
      9 
     10 	A First Level Header
     11 	====================
     12 
     13 	A Second Level Header
     14 	---------------------
     15 
     16 	Now is the time for all good men to come to
     17 	the aid of their country. This is just a
     18 	regular paragraph.
     19 
     20 	The quick brown fox jumped over the lazy
     21 	dog's back.
     22 
     23 	### Header 3
     24 
     25 	> This is a blockquote.
     26 	> 
     27 	> This is the second paragraph in the blockquote.
     28 	>
     29 	> ## This is an H2 in a blockquote
     30 
     31 Phrase emphasis
     32 
     33 markdown:
     34 
     35 	Some of these words *are emphasized*.
     36 	Some of these words _are emphasized also_.
     37 
     38 	Use two asterisks for **strong emphasis**.
     39 	Or, if you prefer, __use two underscores instead__.
     40 
     41 output:
     42 
     43 	<p>Some of these words <em>are emphasized</em>.
     44 	Some of these words <em>are emphasized also</em>.</p>
     45 
     46 	<p>Use two asterisks for <strong>strong emphasis</strong>.
     47 	Or, if you prefer, <strong>use two underscores instead</strong>.</p>
     48 
     49 Links
     50 
     51 markdown:
     52 
     53 	This is an [example link](http://example.com/).
     54 
     55 
     56 	I get 10 times more traffic from [Google][1] than from
     57 	[Yahoo][2] or [MSN][3].
     58 
     59 	[1]: http://google.com/        "Google"
     60 	[2]: http://search.yahoo.com/  "Yahoo Search"
     61 	[3]: http://search.msn.com/    "MSN Search"
     62 
     63 Images
     64 
     65 markdown:
     66 
     67 	![alt text](/path/to/img.jpg "Title")
     68 
     69 
     70 Code
     71 
     72 markdown:
     73 just ident 1tab/4spaces the block you want to display as code
     74 
     75 #### How to run
     76 
     77 Demo complete, cookie time.
     78 
     79 ![wallpaper](images/puffytron.jpg "OpenBSD")
     80 [wallpaper](images/puffytron.jpg)