Monday, June 14, 2010

Markdown - Wikipedia, the free encyclopedia mentioned by @NathanRHale Markdown From Wikipedia, the free encyclopedia Question book-new.svg This article *needs references that appear in reliable third-party publications*. Primary sources or sources affiliated with the subject are generally not sufficient for a Wikipedia article. Please add more appropriate citations from reliable sources . /(February 2009)/ This article is *written like a manual or guidebook .*Please help rewrite this article from a neutral point of view ./(May 2010)/ *Markdown* is a lightweight markup language , originally created by John Gruber and Aaron Swartz to help maximum readability and "publishability" of both its input and output forms. The language takes many cues from existing conventions for marking up plain text in email . Markdown converts its marked-up text input to valid, well-formed XHTML and replaces left-pointing angle brackets (' with their corresponding character entity references . Markdown was originally implemented in Perl by Gruber, but has since been re-implemented by others in a variety of programming languages . It is distributed under a BSD-style license and is included with, or available as a plugin for, several content-management systems ^[1] ^[2] . A mild dialect of it is also in place as Stack Overflow 's default formatting system.^[3] ^[4] Contents [hide ] * 1 Syntax examples o 1.1 Paragraphs o 1.2 Line return o 1.3 Emphasized text o 1.4 Code o 1.5 Lists o 1.6 Headings o 1.7 Blockquotes o 1.8 Links o 1.9 Images o 1.10 Horizontal rules * 2 See also * 3 References * 4 External links [edit ]Syntax examples This is not an exhaustive listing of Markdown's syntax, and in many cases multiple styles of syntax are available to accomplish a particular effect. See the full Markdown syntax for more information. Characters which are ordinarily interpreted by Markdown as formatting commands will instead be interpreted literally if preceded by a backslash; for example, the sequence '\*' would output an asterisk rather than beginning a span of emphasized text. Markdown also does not transform any text within a "raw" block-level XHTML element; thus it is possible to include sections of XHTML within a Markdown source document by wrapping them in block-level XHTML tags. [edit ]Paragraphs A paragraph is one or more consecutive lines of text separated by one or more blank lines. Normal paragraphs should not be indented with spaces or tabs: This is a paragraph. It has two sentences. This is another paragraph. It also has two sentences. [edit ]Line return Line breaks inserted in the text are removed from the final result: the web browser is in charge of breaking the lines depending of the available space. To force a line break, insert two spaces at the end of the line. [edit ]Emphasized text *emphasis* (e.g., italics) **strong emphasis** (e.g., boldface) [edit ]Code `code` [edit ]Lists * An item in a bulleted (unordered) list * Another item in a bulleted list 1. An item in an enumerated (ordered) list 2. Another item in an enumerated list [edit ]Headings HTML headings are produced by placing a number of hashes before the header text corresponding to the level of heading desired (HTML offers six levels of headings), like so: # First-level heading #### Fourth-level heading The first two heading levels also have an alternate syntax: First-level heading =================== Second-level heading -------------------- [edit ]Blockquotes > This text will be enclosed in an HTML blockquote element. > Blockquote elements are reflowable. You may arbitrarily > wrap the text to your liking, and it will all be parsed > into a single blockquote element. The above would translate into the following HTML:

This text will be enclosed in an HTML blockquote element. Blockquote elements are reflowable. You may arbitrarily wrap the text to your liking, and it will all be parsed into a single blockquote element.

[edit ]Links Links may be included inline: [link text here]( "link title here") Alternatively, links can be placed in footnotes outside of the paragraph, being referenced with some sort of reference tag. For example, including the following inline: [link text here][linkref] would produce a link if the following showed up outside of the paragraph (or at the end of the document): [linkref]: "link title here" [edit ]Images Referring to images is similar to including links. The syntax requires an exclamation point to indicate the link refers to an image. The image address may be included inline, as with links: ![Alt text here](ImageURL here "Image title here") It may also be referred to via a reference: ![Alt text here][imageref] Here, imageref refers to information somewhere after the image: [imageref]: "Image title here" [edit ]Horizontal rules Horizontal rules are created by placing three or more hyphens, asterisks, or underscores on a line by themselves. You may use spaces between the hyphens or asterisks. Each of the following lines will produce a horizontal rule: * * * *** ***** - - - --------------------------------------- [edit ]See also * Markdown extensions * reStructuredText [edit ]References 1. *^ * "MarsEdit 2.3 ties the knot with Tumblr support - Ars Technica" . Retrieved 2009-08-11. 2. *^ * "Review: Practical Django Projects - Ars Technica" . Retrieved 2009-08-11. 3. *^ * "Markdown Editing Help - Stack Overflow" . Retrieved 2010-04-29. 4. *^ * "Three Markdown Gotchas - Blog -- Stack Overflow" . Retrieved 2010-04-29. [edit ]External links * Official Markdown project at Daring Fireball * Markdown Wiki * Older Markdown Wiki * MarkdownSharp * PHP Markdown * Showdown, a JavaScript implementation of Markdown *, a simple website to preview markdown in real time * BlueCloth , an implementation of Markdown in Ruby. * pegdown , a pure-Java Markdown implementation based on a PEG parser Categories : Lightweight markup languages

Posted via email from mrgadgets's posterous
Find more from me @