2017-05-18 22:51:59 +02:00
As we support CommonMark, a broad range of markdown features is available to you.
Many of the features shown below were known as Github Flavored Markdown.
2020-04-25 14:44:43 +02:00
## We all like making lists
2013-06-21 17:49:05 +02:00
The above header should be an H2 tag. Now, for a list of fruits:
2020-04-25 14:44:43 +02:00
- Red Apples
- Purple Grapes
- Green Kiwifruits
2013-06-21 17:49:05 +02:00
Let's get crazy:
1. This is a list item with two paragraphs. Lorem ipsum dolor
sit amet, consectetuer adipiscing elit. Aliquam hendrerit
mi posuere lectus.
Vestibulum enim wisi, viverra nec, fringilla in, laoreet
vitae, risus. Donec sit amet nisl. Aliquam semper ipsum
sit amet velit.
2. Suspendisse id sem consectetuer libero luctus adipiscing.
What about some code **in** a list? That's insane, right?
2020-04-25 14:44:43 +02:00
1. In Ruby you can map like this:
2013-06-21 17:49:05 +02:00
['a', 'b'].map { |x| x.uppercase }
2020-04-25 14:44:43 +02:00
2. In Rails, you can do a shortcut:
2013-06-21 17:49:05 +02:00
['a', 'b'].map(& :uppercase)
Some people seem to like definition lists
2020-04-25 14:44:43 +02:00
## I am a robot
2013-06-21 17:49:05 +02:00
Maybe you want to print `robot` to the console 1000 times. Why not?
def robot_invasion
puts("robot " * 1000)
end
You see, that was formatted as code because it's been indented by four spaces.
How about we throw some angle braces and ampersands in there?
< div class = "footer" >
© 2004 Foo Corporation
< / div >
2020-04-25 14:44:43 +02:00
## Set in stone
2013-06-21 17:49:05 +02:00
Preformatted blocks are useful for ASCII art:
< pre >
,-.
, ,-. ,-.
/ \ ( )-( )
2017-11-06 22:46:07 +01:00
\ | ,.>-( )-<
2013-06-21 17:49:05 +02:00
\|,' ( )-( )
Y ___`-' `-'
|/__/ `-'
|
|
| -hrr-
___|_____________
< / pre >
2020-04-25 14:44:43 +02:00
## Playing the blame game
2013-06-21 17:49:05 +02:00
If you need to blame someone, the best way to do so is by quoting them:
> I, at any rate, am convinced that He does not throw dice.
Or perhaps someone a little less eloquent:
> I wish you'd have given me this written question ahead of time so I
> could plan for it... I'm sure something will pop into my head here in
> the midst of this press conference, with all the pressure of trying to
> come up with answer, but it hadn't yet...
>
> I don't want to sound like
> I have made no mistakes. I'm confident I have. I just haven't - you
> just put me under the spot here, and maybe I'm not as quick on my feet
> as I should be in coming up with one.
2020-04-25 14:44:43 +02:00
## Table for two
2013-06-21 17:49:05 +02:00
2020-04-25 14:44:43 +02:00
| ID | Name | Rank |
| --- | :----------------: | ----------------: |
| 1 | Tom Preston-Werner | Awesome |
| 2 | Albert Einstein | Nearly as awesome |
2013-06-21 17:49:05 +02:00
2020-04-25 14:44:43 +02:00
## Crazy linking action
2013-06-21 17:49:05 +02:00
2020-04-25 14:44:43 +02:00
I get 10 times more traffic from [Google][1] than from
[Yahoo][2] or [MSN][3].
2013-06-21 17:49:05 +02:00
2020-04-25 14:44:43 +02:00
[1]: http://google.com/ "Google"
[2]: http://search.yahoo.com/ "Yahoo Search"
[3]: http://search.msn.com/ "MSN Search"
2013-06-21 17:49:05 +02:00
2020-04-25 14:44:43 +02:00
## Images
2016-04-08 14:45:12 +02:00
Here's an image.
![This is an image ](sampleimage.png )
Note: to use images on a landing page (index.md), prefix the image URL with the name of the directory it appears in, omitting the numerical prefix used to order the sections. For example in this section, to display this image on the landing page (index.md), the URL for the image would be "Features/sampleimage.png" to display the same image.
2020-04-25 14:44:43 +02:00
_View the [source of this content ](https://github.com/dauxio/daux.io/blob/master/docs/01_Features/CommonMark_compliant.md )._