File: Leanpub.md

package info (click to toggle)
markdown-mode 2.3%2B154-2
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 1,052 kB
  • sloc: lisp: 13,081; makefile: 69; sh: 16
file content (61 lines) | stat: -rw-r--r-- 814 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
# Leanpub

{frontmatter}

## Section {#id}

[Link to section](#id)

{mainmatter}

## Aside Blocks

A> ## Your Aside Title {#your-aside-title}
A>
A> This is also sometimes known as a sidebar.
A> More info would go here.

C> Centered text

W> Text in a warning box

T> Text in a tip box

E> Text in an error box

I> Text in an information box

Q> Text in a question box

D> Text in a discussion box

X> Text in an exercise box

{pagebreak}

General blocks:

{icon=automobile}
G> ## Vrooom!
G>
G> The freedom of the road!

## Code Blocks

Here is a code sample:

<<(2017-05-04.txt)

<<[This Code Sample Has A Title](code/sample2.rb)

{title="Example 12: Creating a class in Ruby", .class, lang=ruby}
~~~~~~~
class Book

  def initialize(title, subtitle)
    @title = title
    @subtitle = subtitle
  end

end
~~~~~~~