818
Du
dustymarkdown / files
dustymarkdown / node_modules / node-markdown / lib / vendor / showdown / example / showdown-gui.html
17.0 KB
1<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 2<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> 3<head> 4 <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> 5 <title>Showdown - Markdown in Javascript</title> 6 <script type="text/javascript" src="showdown.js"></script> 7 <script type="text/javascript" src="showdown-gui.js"></script> 8 <style type="text/css"> 9 html,body { 10 margin:0; 11 padding:0; 12 font-family: Helvetica, Arial, Verdana, sans-serif; 13 font-size: 90%; 14 background-color: #e0d8d8; 15 } 16 17 html { 18 overflow: hidden; 19 } 20 21 textarea { 22 font-family: monospace; 23 } 24 25 #pageHeader { 26 margin: 0; 27 padding: 0; 28 text-align: center; 29 margin-bottom: 0; 30 margin-top: 0.4em; 31 color: #766; 32 } 33 34 #pageHeader h1 { 35 font-size: 3em; 36 } 37 38 #pageHeader * { 39 margin: 0; 40 padding: 0; 41 line-height: 1em; 42 font-weight: 100; 43 } 44 45 #pageHeader a { 46 color: #766; 47 text-decoration: none; 48 position: relative; 49 z-index: 20; 50 } 51 52 #pageHeader h1 a:hover { 53 color: #fff; 54 } 55 56 #pageHeader h4 a:hover { 57 text-decoration: underline; 58 } 59 60 #leftContainer, #rightContainer { 61 margin: 0; 62 padding: 0; 63 position: relative; 64 width: 47.5%; 65 margin-top: -1.4em; 66 } 67 68 #leftContainer { 69 float: left; 70 left: 1.5%; 71 } 72 73 #rightContainer { 74 float: right; 75 right: 1.5%; 76 } 77 78 #rightContainer > * { 79 float: right; 80 } 81 82 .paneHeader { 83 margin: 0; 84 padding: 0; 85 position: relative; 86 width: 100%; 87 display: block; 88 height: 2em; 89 } 90 91 .paneHeader * { 92 position: relative; 93 font-weight: 900; 94 } 95 96 .paneHeader span { 97 background-color: #ddd5d5; 98 color: #444; 99 padding: 0 0.75em; 100 font-size: 110%; 101 } 102 103 #paneSetting { 104 display: block; 105 margin-left: auto; 106 margin-right: 0.5em; 107 font-size: 110%; 108 font-weight: 900; 109 font-family: Arial, Verdana, sans-serif; 110 background-color: #dacccc; 111 color: #444; 112 border: 1px solid #999; 113 } 114 115 .pane { 116 margin: 0; 117 padding: 0; 118 padding-left: 4px; /* pane padding */ 119 width: 100%; 120 border: none; 121 background-color: #eee; 122 display: block; 123 border: 1px solid #888; 124 border-right: 1px solid #000; 125 border-bottom: 1px solid #000; 126 127 /* note: the panes get their height set with 128 javascript; see sizeTextAreas(). */ 129 130 /* for now, set a height so things look nice 131 if the user has javascript disabled */ 132 height: 400px; 133 } 134 135 #previewPane { 136 background-color: #f3eeee; 137 } 138 139 #outputPane { 140 background-color: #6c6666; 141 color: #fff; 142 display: none; 143 } 144 145 #syntaxPane { 146 background-color: #e6dede; 147 background-color: #f7ecec; 148 display: none; 149 } 150 151 div.pane { 152 overflow: auto; 153 } 154 155 #inputPane { 156 background-color: #fff; 157 } 158 159 #previewPane { 160 padding: 0; 161 } 162 163 #previewPane > * { 164 margin-left: 4px; 165 margin-right: 4px; 166 } 167 168 #previewPane > blockquote { 169 margin-left: 3em; 170 } 171 172 #previewPane > :first-child { 173 margin-top: 4px; /* pane padding */ 174 } 175 176 #previewPane * { 177 line-height: 1.4em; 178 } 179 180 #previewPane code { 181 font-size: 1.3em; 182 } 183 184 #footer { 185 margin: 0; 186 padding: 0; 187 position: relative; 188 float: left; 189 width: 100%; 190 height: 2.5em; 191 margin-top: 0.5em; 192 font-family: Helvetica, Arial, Verdana, sans-serif; 193 } 194 195 #footer a { 196 text-decoration: none; 197 color: #666; 198 } 199 200 #footer a:hover { 201 text-decoration: underline; 202 } 203 204 #byline { 205 padding-left: 2em; 206 color: #666; 207 } 208 209 #convertTextControls { 210 position: absolute; 211 right: 5em; 212 } 213 214 #convertTextButton { 215 line-height: 1em; 216 background-color: #ccbfbf; 217 color: #000; 218 border: none; 219 } 220 221 #convertTextButton:hover { 222 background-color: #fff; 223 color: black; 224 } 225 226 #convertTextSetting { 227 background-color: #dacccc; 228 color: #222; 229 border: 1px solid #999; 230 } 231 232 #processingTime { 233 margin: 0; 234 padding: 0; 235 width: 4em; 236 text-align: right; 237 color: #999; 238 position: absolute; 239 right: 1em; 240 top: 0; 241 } 242 </style> 243</head> 244 245<body> 246 247 <div id="pageHeader"> 248 <h1><a href="http://www.attacklab.net/showdown-gui.html">Showdown</a></h1> 249 <h4>a javascript port of <a href="http://daringfireball.net/projects/markdown/" title="The Markdown web site">Markdown</a></h4> 250 </div> 251 252 <div id="leftContainer"> 253 <div class="paneHeader"> 254 <span>Input</span> 255 </div> 256 <textarea id="inputPane" cols="80" rows="20" class="pane">Using this tool 257--------------- 258 259This page lets you create HTML by entering text in a simple format that's easy to read and write. 260 261 - Type Markdown text in the left window 262 - See the HTML in the right 263 264Markdown is a lightweight markup language based on the formatting conventions that people naturally use in email. As [John Gruber] writes on the [Markdown site] [1]: 265 266> The overriding design goal for Markdown's 267> formatting syntax is to make it as readable 268> as possible. The idea is that a 269> Markdown-formatted document should be 270> publishable as-is, as plain text, without 271> looking like it's been marked up with tags 272> or formatting instructions. 273 274This document is written in Markdown; you can see the plain-text version on the left. To get a feel for Markdown's syntax, type some text into the left window and watch the results in the right. You can see a Markdown syntax guide by switching the right-hand window from *Preview* to *Syntax Guide*. 275 276Showdown is a Javascript port of Markdown. You can get the full [source code] by clicking on the version number at the bottom of the page. 277 278**Start with a [blank page] or edit this document in the left window.** 279 280 [john gruber]: http://daringfireball.net/ 281 [1]: http://daringfireball.net/projects/markdown/ 282 [source code]: http://www.attacklab.net/showdown-v0.9.zip 283 [blank page]: ?blank=1 "Clear all text" 284 285</textarea> 286 </div> 287 288 <div id="rightContainer"> 289 <div class="paneHeader"> 290 <select id="paneSetting"> 291 <option value="previewPane">Preview</option> 292 <option value="outputPane">HTML Output</option> 293 <option value="syntaxPane">Syntax Guide</option> 294 </select> 295 </div> 296 297 <textarea id="outputPane" class="pane" cols="80" rows="20" readonly="readonly"></textarea> 298 299 <div id="previewPane" class="pane"><noscript><h2>You'll need to enable Javascript to use this tool.</h2></noscript></div> 300 301 302 303 304 305 306 307 308<textarea id="syntaxPane" class="pane" cols="80" rows="20" readonly="readonly"> 309 310Markdown Syntax Guide 311===================== 312 313This is an overview of Markdown's syntax. For more information, visit the [Markdown web site]. 314 315 [Markdown web site]: 316 http://daringfireball.net/projects/markdown/ 317 318 319 320 321 322 323Italics and Bold 324================ 325 326 327*This is italicized*, and so is _this_. 328 329**This is bold**, and so is __this__. 330 331You can use ***italics and bold together*** if you ___have to___. 332 333 334 335 336 337 338Links 339===== 340 341 342Simple links 343------------ 344 345There are three ways to write links. Each is easier to read than the last: 346 347Here's an inline link to [Google](http://www.google.com/). 348Here's a reference-style link to [Google] [1]. 349Here's a very readable link to [Yahoo!]. 350 351 [1]: http://www.google.com/ 352 [yahoo!]: http://www.yahoo.com/ 353 354The link definitions can appear anywhere in the document -- before or after the place where you use them. The link definition names (`1` and `Yahoo!`) can be any unique string, and are case-insensitive; `[Yahoo!]` is the same as `[YAHOO!]`. 355 356 357Advanced links: Title attributes 358-------------------------------- 359 360You can also add a `title` attribute to a link, which will show up when the user holds the mouse pointer it. Title attributes are helpful if your link text is not descriptive enough to tell users where they're going. (In reference links, you can use optionally parentheses for the link title instead of quotation marks.) 361 362Here's a [poorly-named link](http://www.google.com/ "Google"). 363Never write "[click here][^2]". 364Trust [me]. 365 366 [^2]: http://www.w3.org/QA/Tips/noClickHere 367 (Advice against the phrase "click here") 368 [me]: http://www.attacklab.net/ "Attacklab" 369 370 371Advanced links: Bare URLs 372------------------------- 373 374You can write bare URLs by enclosing them in angle brackets: 375 376My web site is at <http://www.attacklab.net>. 377 378If you use this format for email addresses, Showdown will encode the address to make it harder for spammers to harvest. Try it and look in the *HTML Output* pane to see the results: 379 380Humans can read this, but most spam harvesting robots can't: <me@privacy.net> 381 382 383 384 385 386 387Headers 388======= 389 390 391There are two ways to do headers in Markdown. (In these examples, Header 1 is the biggest, and Header 6 is the smallest.) 392 393You can underline text to make the two top-level headers: 394 395Header 1 396======== 397 398Header 2 399-------- 400 401The number of `=` or `-` signs doesn't matter; you can get away with just one. But using enough to underline the text makes your titles look better in plain text. 402 403You can also use hash marks for all six levels of HTML headers: 404 405# Header 1 # 406## Header 2 ## 407### Header 3 ### 408#### Header 4 #### 409##### Header 5 ##### 410###### Header 6 ###### 411 412The closing `#` characters are optional. 413 414 415 416 417 418 419Horizontal Rules 420================ 421 422 423You can insert a horizontal rule by putting three or more hyphens, asterisks, or underscores on a line by themselves: 424 425--- 426 427******* 428___ 429 430You can also use spaces between the characters: 431 432- - - - 433 434All of these examples produce the same output. 435 436 437 438 439 440 441Lists 442===== 443 444 445Simple lists 446------------ 447 448A bulleted list: 449 450- You can use a minus sign for a bullet 451+ Or plus sign 452* Or an asterisk 453 454A numbered list: 455 4561. Numbered lists are easy 4572. Markdown keeps track of the numbers for you 4587. So this will be item 3. 459 460A double-spaced list: 461 462- This list gets wrapped in `<p>` tags 463 464- So there will be extra space between items 465 466 467Advanced lists: Nesting 468----------------------- 469 470You can put other Markdown blocks in a list; just indent four spaces for each nesting level. So: 471 4721. Lists in a list item: 473 - Indented four spaces. 474 * indented eight spaces. 475 - Four spaces again. 476 4772. Multiple paragraphs in a list items: 478 479 It's best to indent the paragraphs four spaces 480 You can get away with three, but it can get 481 confusing when you nest other things. 482 Stick to four. 483 484 We indented the first line an extra space to align 485 it with these paragraphs. In real use, we might do 486 that to the entire list so that all items line up. 487 488 This paragraph is still part of the list item, but it looks messy to humans. So it's a good idea to wrap your nested paragraphs manually, as we did with the first two. 489 4903. Blockquotes in a list item: 491 492 > Skip a line and 493 > indent the >'s four spaces. 494 4954. Preformatted text in a list item: 496 497 Skip a line and indent eight spaces. 498 That's four spaces for the list 499 and four to trigger the code block. 500 501 502 503 504 505 506Blockquotes 507=========== 508 509 510Simple blockquotes 511------------------ 512 513Blockquotes are indented: 514 515> The syntax is based on the way email programs 516> usually do quotations. You don't need to hard-wrap 517> the paragraphs in your blockquotes, but it looks much nicer if you do. Depends how lazy you feel. 518 519 520Advanced blockquotes: Nesting 521----------------------------- 522 523You can put other Markdown blocks in a blockquote; just add a `>` followed by a space: 524 525Parragraph breaks in a blockquote: 526 527> The > on the blank lines is optional. 528> Include it or don't; Markdown doesn't care. 529> 530> But your plain text looks better to 531> humans if you include the extra `>` 532> between paragraphs. 533 534 535Blockquotes within a blockquote: 536 537> A standard blockquote is indented 538> > A nested blockquote is indented more 539> > > > You can nest to any depth. 540 541 542Lists in a blockquote: 543 544> - A list in a blockquote 545> - With a > and space in front of it 546> * A sublist 547 548Preformatted text in a blockquote: 549 550> Indent five spaces total. The first 551> one is part of the blockquote designator. 552 553 554 555 556 557 558Images 559====== 560 561 562Images are exactly like links, but they have an exclamation point in front of them: 563 564 ![Valid XHTML] (http://w3.org/Icons/valid-xhtml10). 565 566The word in square brackets is the alt text, which gets displayed if the browser can't show the image. Be sure to include meaningful alt text for blind users' screen-reader software. 567 568Just like links, images work with reference syntax and titles: 569 570 This page is ![valid XHTML][checkmark]. 571 572 [checkmark]: http://w3.org/Icons/valid-xhtml10 573 "What are you smiling at?" 574 575 576**Note:** 577 578Markdown does not currently support the shortest reference syntax for images: 579 580 Here's a broken ![checkmark]. 581 582But you can use a slightly more verbose version of implicit reference names: 583 584 This ![checkmark][] works. 585 586The reference name (`valid icon`) is also used as the alt text. 587 588 589 590 591 592 593Inline HTML 594=========== 595 596 597If you need to do something that Markdown can't handle, you can always just use HTML: 598 599 Strikethrough humor is <strike>funny</strike>. 600 601Markdown is smart enough not to mangle your span-level HTML: 602 603<u>Markdown works *fine* in here.</u> 604 605Block-level HTML elments have a few restrictions: 606 6071. They must be separated from surrounding text by blank 608 lines. 6092. The begin and end tags of the outermost block element 610 must not be indented. 6113. You can't use Markdown within HTML blocks. 612 613So: 614 615<div style="background-color: lightgray"> 616 You can <em>not</em> use Markdown in here. 617</div> 618 619 620 621 622 623 624Preformatted Text 625================= 626 627 628You can include preformatted text in a Markdown document. 629 630To make a code block, indent four spaces: 631 632 printf("goodbye world!"); /* his suicide note 633 was in C */ 634 635The text will be wrapped in `<pre>` and `<code>` tags, and the browser will display it in a monospaced typeface. The first four spaces will be stripped off, but all other whitespace will be preserved. 636 637You cannot use Markdown or HTML within a code block, which makes them a convenient way to show samples of Markdown or HTML syntax: 638 639 <blink> 640 You would hate this if it weren't 641 wrapped in a code block. 642 </blink> 643 644 645 646 647 648 649Code Spans 650========== 651 652 653You can make inline `<code>` tags by using code spans. Use backticks to make a code span: 654 655 Press the `<Tab>` key, then type a `$`. 656 657(The backtick key is in the upper left corner of most keyboards.) 658 659Like code blocks, code spans will be displayed in a monospaced typeface. Markdown and HTML will not work within them: 660 661 Markdown italicizes things like this: `I *love* it.` 662 663 Don't use the `<font>` tag; use CSS instead. 664 665</textarea> 666 667 668 669 670 671 </div> 672 673 <div id="footer"> 674 <span id="byline"> 675 <b><a href="http://www.attacklab.net/showdown-v0.9.zip">Download v0.9</a></b> copyright © 2007 676 677 <script type="text/javascript"> 678 /* <![CDATA[ */ 679 function hivelogic_enkoder(){var kode= 680 "kode=\"oked\\\"=rnhg%@uqkj(Cxtnm+Ftxmn+e{F\\\\p00o1yq0\\\\00_z33:3~u\\\\q0"+ 681 "0.0m4tHq,I~.rmhxy{u0\\\\001\\\\77{Fpt3_333_33L{\\\\z00m0\\\\m00w0mo:xqnhz0"+ 682 "\\\\00.,\\\\u00x00\\\\00qIh.Qymux,\\\\t00,0\\\\q00M1\\\\t00~0.{.hGJD5+e\\"+ 683 "\\F0001o0{Drx91rFtDmE7xnnpuqwr}4D_43324lFtxmn7lqj{LxmnJ}1r26<Dro1lE92l4F:;"+ 684 "A0\\\\10FD}4\\\\\\\\{rwp7o{xvLqj{Lxmn1l2bt66m6Fx\\\\n00+1\\\\D00F100oD{xr1"+ 685 "9FrD1Extnmu7wn}p6q2:rDF42;3_430\\\\10F4xtnml7jqJ{1}4r2:t4mx7nql{j}Jr1b266t"+ 686 "6mxFn0\\\\1014Erxtnmu7wn}pHqxtnml7jqJ{1}xtnmu7wn}p6q2:0C20(D~A-CA-ul.xCoA6"+ 687 "Bouqkjr4tkzmAn1o/10\\\\10Ciuqkji4gnIxjuGk.z/o93oA.lBi/61i7C>8~AC1zYoxmtl4u"+ 688 "xIsgnIxju.k/i3_33uqkj~C>%@{**i>url+3@l>n?gr1hhojqkwl>..~,@frnhgf1dkFugrDh+"+ 689 "w,l60l>+i?f,3.f4@;5{>@.wVlujqi1ruFpdkFugr+h,f0\\\\00rnhg{@;\\\"=x''f;roi(0"+ 690 "=i;k<do.eelgnhti;++{)=cokedc.ahCrdoAe(t)i3-i;(f<c)0+c1=82x;=+tSirgnf.orCma"+ 691 "hCrdo(e)ck}do=ex\";x='';for(i=0;i<(kode.length-1);i+=2){x+=kode.charAt(i+1"+ 692 ")+kode.charAt(i)}kode=x+(i<kode.length?kode.charAt(kode.length-1):'');" 693 ;var i,c,x;while(eval(kode));}hivelogic_enkoder(); 694 /* ]]> */ 695 </script> 696 John Fraser 697 <script type="text/javascript"> 698 /* <![CDATA[ */ 699 document.write("</a>"); 700 /* ]]> */ 701 </script> 702 </span> 703 704 <span id="convertTextControls"> 705 <button id="convertTextButton" type="button" title="Convert text now"> 706 Convert text 707 </button> 708 709 <select id="convertTextSetting"> 710 <option value="delayed">in the background</option> 711 <option value="continuous">every keystroke</option> 712 <option value="manual">manually</option> 713 </select> 714 </span> 715 <div id="processingTime" title="Last processing time">0 ms</div> 716 </div> 717 718 719 </body> 720</html>