Skip to content

Instantly share code, notes, and snippets.

@Ezimetjan
Created September 25, 2015 17:15
Show Gist options
  • Select an option

  • Save Ezimetjan/4b874b31e610af8ccc5c to your computer and use it in GitHub Desktop.

Select an option

Save Ezimetjan/4b874b31e610af8ccc5c to your computer and use it in GitHub Desktop.

Revisions

  1. matouka-suzuki created this gist Mar 18, 2015.
    97 changes: 97 additions & 0 deletions markup.swift
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,97 @@
    //: Playground - noun: a place where people can play

    //: Markup Format

    // Heading #

    /*:

    # Heading1 in Block

    ## Heading2 in Block

    ### Heading3 in Block

    */


    // Lists. *

    /*: A bulleted list of 2 items
    * Item 1
    * Item 2
    */

    /*: A numbered list with 2 levels
    1. Cat
    2. Dog
    1. Golden Retriever
    3. Llama
    */

    /*: Start the numbering of the rich text list at "4“
    4. Fish
    5. Lizard
    */

    // Quote. >

    /*:
    > A great text.
    */

    // Code Block. Start eatch line of a code block with at least 4 spaces.

    /*:
    while true {
    println("hoge")
    }
    */

    // Emphasis. *emphasis* or _emphasis_

    //: This line has a word with *emphasis*

    //: This line uses _emphasis for the last six words_

    // Strong. **strong** or __strong__

    //: A **strong * (asterisk)** is on this line

    //: __A strong line__


    // Code. `let`

    //: Show Swift elements such as `for` and `let` as monspaced code font


    // Image. ![<alt text>](<URL> "<image title for hover>")

    //: ![Icon for a playground](http://devimages.apple.com.edgekey.net/swift/images/playgrounds.png "An image I seesawed")

    // A link to a playground resource with no hover text.

    //: ![A picture beyond words!](Resources/my-great-image.jpg)


    // Link. [<text to display>](<http URL>)

    /*: Include a link to the Swift page in the text
    See more about Markup Format by [following this link.](https://developer.apple.com/library/prerelease/ios/documentation/Swift/Reference/Playground_Ref/MarkupReference.html#//apple_ref/doc/uid/TP40014789-CH3-SW14)
    */


    // Horizontal Rule. 4 more -

    /*: A block of markup code showing a single horizontal line

    ----

    */


    // Backslash Escape. \(special character)

    //: Show the *middle asterisk\* with emphasis*