Skip to content

Instantly share code, notes, and snippets.

@mpriour
Last active December 23, 2015 07:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mpriour/6604978 to your computer and use it in GitHub Desktop.
Save mpriour/6604978 to your computer and use it in GitHub Desktop.
testing md tables

Regular Tables

Strict Table Markup

Event Return Value Description
locate none Event is fired when the locate method has been called.
load none Event is fired when the widget has been loaded.

Pipe Tables - php extra

Name Type Description
params Object Various parameters to configure this dijit. See the list below for details.
srcNodeRef DOM Node Reference or id of a HTML element that this dijit is rendered into. This parameter is always required.
Event Object Property Description
graphic Graphic used to set current location
scale int Scale in meters to set the map to. Based on accuracy.

Nested Tables

Strict Table Markup

Event Return Value Description
locate none Event is fired when the locate method has been called.
Argument Object Properties Description
graphic <Graphic> used to set current location.
scale <int> Scale in meters to set the map to. Based on accuracy.
position <Geoposition> object returned from Geolocation API.
load none Event is fired when the widget has been loaded.

Unsupported Table Formats

Pipe Tables - php extra with lines

Name Type Description
params Object Various parameters to configure this dijit. See the list below for details.
srcNodeRef DOM Node Reference or id of a HTML element that this dijit is rendered
into. This parameter is always required.

Pipe Tables - emacs

| Name | Type | Description | |------------+-----------+-----------------------------------------------------------------| | params | Object | Various parameters to configure this dijit. See the list below for details. Reference or id of a HTML element that this dijit | | srcNodeRef | DOM Node | is rendered into. This parameter is always required. |

Grid Tables

+------------+-----------+-----------------------------------------------------------------+ | Name | Type | Description | +============+===========+=================================================================+ | params | Object | Various parameters to configure this dijit. See the list below | | | | for details. Reference or id of a HTML element that this dijit | +------------+-----------+-----------------------------------------------------------------+ | srcNodeRef | DOM Node | is rendered into. This parameter is always required. | +------------+-----------+-----------------------------------------------------------------+

Simple Tables

Property Type Description


map Map Map object that this dijit is associated with. theme String Class used for styling the widget.

Multiline Tables


Name Type Description


infoTemplate InfoTemplate The infoTemplate used for the lighlight graphic. (optional). Default: null

scale Float The scale to zoom to when a users location has been found. (optional). Default: null. (By default scale is according to accuracy in meters returned from geolocation)

rst Test

Simple Table

Name Type Description
params Object Various parameters to configure this dijit. See the list below for details.
srcNodeRef DOM Node Reference or id of a HTML element that this dijit is rendered into. This parameter is always required.

Nested Table

Event Return Value Description
locate none

Event is fired when the locate method has been called.

Event Object Property Description
graphic Graphic used to set current location
scale int Scale in meters to set the map to. Based on accuracy.
load none Event is fired when the widget has been loaded.

Header 1

Header 2

Header 3 ### (Hashes on right are optional)

Header 4

Header 5

Markdown plus h2 with a custom ID ## {#id-goes-here}

Link back to H2

This is a paragraph, which is text surrounded by whitespace. Paragraphs can be on one line (or many), and can drone on for hours.

Here is a Markdown link to Warped, and a literal . Now some SimpleLinks, like one to [google] (automagically links to are-you- feeling-lucky), a [wiki: test] link to a Wikipedia page, and a link to [foldoc: CPU]s at foldoc.

Now some inline markup like italics, bold, and code(). Note that underscores in words are ignored in Markdown Extra.

picture alt

Blockquotes are like quoted text in email replies

And, they can be nested

  • Bullet lists are easy too
  • Another one
  • Another one
  1. A numbered list
  2. Which is numbered
  3. With periods and a space

And now some code:

// Code is just text indented a bit
which(is_easy) to_remember();

// Markdown extra adds un-indented code blocks too

if (this_is_more_code == true && !indented) {
    // tild wrapped code blocks, also not indented
}

Text with
two trailing spaces
(on the right)
can be used
for things like poems

Horizontal rules




This is a div wrapping some Markdown plus. Without the DIV attribute, it ignores the block.

Markdown plus tables

Header Header Right
Cell Cell $10
Cell Cell $20
  • Outer pipes on tables are optional
  • Colon used for alignment (right versus left)

Markdown plus definition lists

Bottled water : $ 1.25 : $ 1.55 (Large)

Milk Pop : $ 1.75

  • Multiple definitions and terms are possible
  • Definitions can include multiple paragraphs too

*[ABBR]: Markdown plus abbreviations (produces an tag)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment