Leanpub.md (814B)
1 # Leanpub 2 3 {frontmatter} 4 5 ## Section {#id} 6 7 [Link to section](#id) 8 9 {mainmatter} 10 11 ## Aside Blocks 12 13 A> ## Your Aside Title {#your-aside-title} 14 A> 15 A> This is also sometimes known as a sidebar. 16 A> More info would go here. 17 18 C> Centered text 19 20 W> Text in a warning box 21 22 T> Text in a tip box 23 24 E> Text in an error box 25 26 I> Text in an information box 27 28 Q> Text in a question box 29 30 D> Text in a discussion box 31 32 X> Text in an exercise box 33 34 {pagebreak} 35 36 General blocks: 37 38 {icon=automobile} 39 G> ## Vrooom! 40 G> 41 G> The freedom of the road! 42 43 ## Code Blocks 44 45 Here is a code sample: 46 47 <<(2017-05-04.txt) 48 49 <<[This Code Sample Has A Title](code/sample2.rb) 50 51 {title="Example 12: Creating a class in Ruby", .class, lang=ruby} 52 ~~~~~~~ 53 class Book 54 55 def initialize(title, subtitle) 56 @title = title 57 @subtitle = subtitle 58 end 59 60 end 61 ~~~~~~~