|
| 1 | +--- |
| 2 | +title: Test |
| 3 | +--- |
| 4 | + |
| 5 | +# Heading One |
| 6 | +## Heading Two |
| 7 | +### Heading Three |
| 8 | +#### Heading Four |
| 9 | +##### Heading Five |
| 10 | +###### Heading Six |
| 11 | + |
| 12 | +## Inline Elements |
| 13 | + |
| 14 | +Some metadata |
| 15 | +{:.meta} |
| 16 | + |
| 17 | +This is some text with **bold**, *italic* and ***bold italic*** text[^1]. It also has a [link](https://cmbuckley.co.uk). |
| 18 | + |
| 19 | +There is also <ins>inserted text</ins> and <del>deleted text</del>. Search results get a <mark>highlight</mark> as well. |
| 20 | + |
| 21 | +## Blockquote |
| 22 | + |
| 23 | +> This is a blockquote |
| 24 | +
|
| 25 | +## Lists |
| 26 | + |
| 27 | +### Ordered List |
| 28 | + |
| 29 | +1. This |
| 30 | +2. is a |
| 31 | +3. numbered |
| 32 | + list |
| 33 | +5. containing |
| 34 | + - an |
| 35 | + - unordered |
| 36 | + - list |
| 37 | +6. and |
| 38 | +7. continuing |
| 39 | + |
| 40 | +### Unordered List |
| 41 | + |
| 42 | +- Unordered |
| 43 | +- list |
| 44 | + - with |
| 45 | + - sub-list |
| 46 | +- and |
| 47 | +- more |
| 48 | + |
| 49 | +## Horizontal Rule |
| 50 | + |
| 51 | +Foo |
| 52 | + |
| 53 | +--- |
| 54 | + |
| 55 | +Bar |
| 56 | + |
| 57 | +## Table |
| 58 | + |
| 59 | +Some text |
| 60 | + |
| 61 | +| Table Heading | Center align | Right align | Table Heading | |
| 62 | +| :------------ | :-------------: | --------------: | :------------ | |
| 63 | +| Item 1 | Item 3 | Item 4 | Item 5 | |
| 64 | +| Item 1 | Item 3 | Item 4 | Item 5 | |
| 65 | +| Item 1 | Item 3 | Item 4 | Item 5 | |
| 66 | +| Item 1 | Item 3 | Item 4 | Item 5 | |
| 67 | +| Item 1 | Item 3 | Item 4 | Item 5 | |
| 68 | + |
| 69 | +Some more text |
| 70 | + |
| 71 | +## Code |
| 72 | + |
| 73 | +### Inline code |
| 74 | + |
| 75 | +Some normal text with some `inline code` in it, plus <kbd>keyboard input</kbd> and <samp>sample output</samp>. |
| 76 | + |
| 77 | +### Block Code |
| 78 | + |
| 79 | +Text |
| 80 | + |
| 81 | +```ruby |
| 82 | +require 'twitter_ebooks' |
| 83 | + |
| 84 | +class MyBot < Ebooks::Bot |
| 85 | + # Configuration here applies to all MyBots |
| 86 | + def configure |
| 87 | + |
| 88 | + self.consumer_key = ENV['TWITTER_CONSUMER_KEY'] |
| 89 | + self.consumer_secret = ENV['TWITTER_CONSUMER_SECRET'] |
| 90 | + |
| 91 | + end |
| 92 | + |
| 93 | + def on_startup |
| 94 | + model = Ebooks::Model.load("model/text.model") |
| 95 | + scheduler.cron '0 6,18,22 * * * America/New_York' do |
| 96 | + tweet(model.make_statement(140)) |
| 97 | + end |
| 98 | + end |
| 99 | +end |
| 100 | + |
| 101 | +# Make a MyBot and attach it to an account |
| 102 | +MyBot.new("mage__ebooks") do |bot| |
| 103 | + bot.access_token = ENV['TWITTER_ACCESS_TOKEN'] |
| 104 | + bot.access_token_secret = ENV['TWITTER_ACCESS_TOKEN_SECRET'] |
| 105 | +end |
| 106 | +``` |
| 107 | + |
| 108 | +More text |
| 109 | + |
| 110 | +## Messages |
| 111 | + |
| 112 | +This is OK. [Link](#) |
| 113 | +{:.ok} |
| 114 | + |
| 115 | +This is info. [Link](#) |
| 116 | +{:.info} |
| 117 | + |
| 118 | +This is a warning. [Link](#) |
| 119 | +{:.warning} |
| 120 | + |
| 121 | +This is an error. [Link](#) |
| 122 | +{:.error} |
| 123 | + |
| 124 | +## Forms |
| 125 | + |
| 126 | +<form> |
| 127 | + <label for="testinput">Text input</label> |
| 128 | + <input id="testinput" type="text" /><br /> |
| 129 | + |
| 130 | + <label for="testta">Textarea</label> |
| 131 | + <textarea id="testta"></textarea><br /> |
| 132 | +</form> |
| 133 | + |
| 134 | +Primary |
| 135 | +{:.button} |
| 136 | + |
| 137 | +Secondary |
| 138 | +{:.button--secondary} |
| 139 | + |
| 140 | +Tertiary |
| 141 | +{:.button--tertiary} |
| 142 | + |
| 143 | +Outline |
| 144 | +{:.button--outline} |
| 145 | + |
| 146 | +[^1]: This is a [footnote](https://en.wikipedia.org/wiki/Note_(typography)). It also has **bold**, *italic*, ***bold italic*** and `code` in it. |
0 commit comments