kramdown-asciidoc 1.0.0.alpha.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (221) hide show
  1. checksums.yaml +7 -0
  2. data/CHANGELOG.adoc +10 -0
  3. data/Gemfile +3 -0
  4. data/LICENSE.adoc +22 -0
  5. data/README.adoc +147 -0
  6. data/Rakefile +3 -0
  7. data/bin/kramdoc +24 -0
  8. data/kramdown-asciidoc.gemspec +41 -0
  9. data/lib/kramdown-asciidoc.rb +2 -0
  10. data/lib/kramdown-asciidoc/converter.rb +413 -0
  11. data/lib/kramdown-asciidoc/version.rb +3 -0
  12. data/spec/converter_spec.rb +114 -0
  13. data/spec/fixtures/a/bare-url.adoc +1 -0
  14. data/spec/fixtures/a/bare-url.md +1 -0
  15. data/spec/fixtures/a/interdoc-xref.adoc +1 -0
  16. data/spec/fixtures/a/interdoc-xref.md +1 -0
  17. data/spec/fixtures/a/internal.adoc +5 -0
  18. data/spec/fixtures/a/internal.md +5 -0
  19. data/spec/fixtures/a/local.adoc +1 -0
  20. data/spec/fixtures/a/local.md +1 -0
  21. data/spec/fixtures/a/url-matches-text.adoc +1 -0
  22. data/spec/fixtures/a/url-matches-text.md +1 -0
  23. data/spec/fixtures/a/url-with-text.adoc +1 -0
  24. data/spec/fixtures/a/url-with-text.md +1 -0
  25. data/spec/fixtures/blockquote/basic.adoc +3 -0
  26. data/spec/fixtures/blockquote/basic.md +1 -0
  27. data/spec/fixtures/blockquote/list.adoc +5 -0
  28. data/spec/fixtures/blockquote/list.md +3 -0
  29. data/spec/fixtures/blockquote/multiple-lines.adoc +5 -0
  30. data/spec/fixtures/blockquote/multiple-lines.md +3 -0
  31. data/spec/fixtures/blockquote/nested.adoc +7 -0
  32. data/spec/fixtures/blockquote/nested.md +3 -0
  33. data/spec/fixtures/blockquote/with-attribution.adoc +5 -0
  34. data/spec/fixtures/blockquote/with-attribution.md +3 -0
  35. data/spec/fixtures/br/tag-followed-by-newline.adoc +3 -0
  36. data/spec/fixtures/br/tag-followed-by-newline.md +3 -0
  37. data/spec/fixtures/br/tag-preceded-by-space.adoc +3 -0
  38. data/spec/fixtures/br/tag-preceded-by-space.md +1 -0
  39. data/spec/fixtures/br/tag.adoc +3 -0
  40. data/spec/fixtures/br/tag.md +1 -0
  41. data/spec/fixtures/br/trailing-double-space.adoc +3 -0
  42. data/spec/fixtures/br/trailing-double-space.md +3 -0
  43. data/spec/fixtures/codeblock/contiguous-lines.adoc +5 -0
  44. data/spec/fixtures/codeblock/contiguous-lines.md +3 -0
  45. data/spec/fixtures/codeblock/fenced/bash-to-console.adoc +4 -0
  46. data/spec/fixtures/codeblock/fenced/bash-to-console.md +3 -0
  47. data/spec/fixtures/codeblock/fenced/with-command-prompt.adoc +1 -0
  48. data/spec/fixtures/codeblock/fenced/with-command-prompt.md +3 -0
  49. data/spec/fixtures/codeblock/fenced/with-language.adoc +8 -0
  50. data/spec/fixtures/codeblock/fenced/with-language.md +7 -0
  51. data/spec/fixtures/codeblock/fenced/with-non-contiguous-command-prompts.adoc +5 -0
  52. data/spec/fixtures/codeblock/fenced/with-non-contiguous-command-prompts.md +5 -0
  53. data/spec/fixtures/codeblock/fenced/without-language.adoc +5 -0
  54. data/spec/fixtures/codeblock/fenced/without-language.md +5 -0
  55. data/spec/fixtures/codeblock/non-contiguous-lines.adoc +7 -0
  56. data/spec/fixtures/codeblock/non-contiguous-lines.md +5 -0
  57. data/spec/fixtures/codeblock/with-command-prompt.adoc +1 -0
  58. data/spec/fixtures/codeblock/with-command-prompt.md +1 -0
  59. data/spec/fixtures/codeblock/with-non-contiguous-command-prompts.adoc +5 -0
  60. data/spec/fixtures/codeblock/with-non-contiguous-command-prompts.md +3 -0
  61. data/spec/fixtures/codespan/constrained.adoc +1 -0
  62. data/spec/fixtures/codespan/constrained.md +1 -0
  63. data/spec/fixtures/codespan/literal.adoc +3 -0
  64. data/spec/fixtures/codespan/literal.md +3 -0
  65. data/spec/fixtures/em/asterisks.adoc +1 -0
  66. data/spec/fixtures/em/asterisks.md +1 -0
  67. data/spec/fixtures/em/constrained.adoc +1 -0
  68. data/spec/fixtures/em/constrained.md +1 -0
  69. data/spec/fixtures/entity/numeric.adoc +1 -0
  70. data/spec/fixtures/entity/numeric.md +1 -0
  71. data/spec/fixtures/entity/reverse.adoc +1 -0
  72. data/spec/fixtures/entity/reverse.md +1 -0
  73. data/spec/fixtures/heading/out-of-sequence.adoc +23 -0
  74. data/spec/fixtures/heading/out-of-sequence.md +21 -0
  75. data/spec/fixtures/heading/outline.adoc +13 -0
  76. data/spec/fixtures/heading/outline.md +13 -0
  77. data/spec/fixtures/heading/with-anchor.adoc +2 -0
  78. data/spec/fixtures/heading/with-anchor.md +1 -0
  79. data/spec/fixtures/heading/with-formatting.adoc +1 -0
  80. data/spec/fixtures/heading/with-formatting.md +1 -0
  81. data/spec/fixtures/hr/between-blocks.adoc +5 -0
  82. data/spec/fixtures/hr/between-blocks.md +5 -0
  83. data/spec/fixtures/hr/dashes.adoc +1 -0
  84. data/spec/fixtures/hr/dashes.md +1 -0
  85. data/spec/fixtures/html_element/abbr.adoc +1 -0
  86. data/spec/fixtures/html_element/abbr.md +1 -0
  87. data/spec/fixtures/html_element/heading-with-class.adoc +7 -0
  88. data/spec/fixtures/html_element/heading-with-class.md +5 -0
  89. data/spec/fixtures/html_element/heading-with-id.adoc +2 -0
  90. data/spec/fixtures/html_element/heading-with-id.md +1 -0
  91. data/spec/fixtures/html_element/native.adoc +1 -0
  92. data/spec/fixtures/html_element/native.md +1 -0
  93. data/spec/fixtures/html_element/sub.adoc +1 -0
  94. data/spec/fixtures/html_element/sub.md +1 -0
  95. data/spec/fixtures/html_element/sup.adoc +1 -0
  96. data/spec/fixtures/html_element/sup.md +1 -0
  97. data/spec/fixtures/img/block-with-alt.adoc +1 -0
  98. data/spec/fixtures/img/block-with-alt.md +1 -0
  99. data/spec/fixtures/img/block-with-link-and-alt.adoc +1 -0
  100. data/spec/fixtures/img/block-with-link-and-alt.md +1 -0
  101. data/spec/fixtures/img/block-with-link.adoc +1 -0
  102. data/spec/fixtures/img/block-with-link.md +1 -0
  103. data/spec/fixtures/img/block.adoc +1 -0
  104. data/spec/fixtures/img/block.md +1 -0
  105. data/spec/fixtures/img/imagesdir.adoc +4 -0
  106. data/spec/fixtures/img/imagesdir.md +3 -0
  107. data/spec/fixtures/img/imagesdir.opts +2 -0
  108. data/spec/fixtures/img/implicit-imagesdir.adoc +3 -0
  109. data/spec/fixtures/img/implicit-imagesdir.md +3 -0
  110. data/spec/fixtures/img/implicit-imagesdir.opts +2 -0
  111. data/spec/fixtures/img/inline-with-alt.adoc +1 -0
  112. data/spec/fixtures/img/inline-with-alt.md +1 -0
  113. data/spec/fixtures/img/inline-with-link-and-alt.adoc +1 -0
  114. data/spec/fixtures/img/inline-with-link-and-alt.md +1 -0
  115. data/spec/fixtures/img/inline-with-link.adoc +1 -0
  116. data/spec/fixtures/img/inline-with-link.md +1 -0
  117. data/spec/fixtures/img/inline.adoc +1 -0
  118. data/spec/fixtures/img/inline.md +1 -0
  119. data/spec/fixtures/ol/compound-separated.adoc +25 -0
  120. data/spec/fixtures/ol/compound-separated.md +23 -0
  121. data/spec/fixtures/ol/compound.adoc +25 -0
  122. data/spec/fixtures/ol/compound.md +18 -0
  123. data/spec/fixtures/ol/mixed-separated.adoc +6 -0
  124. data/spec/fixtures/ol/mixed-separated.md +11 -0
  125. data/spec/fixtures/ol/mixed.adoc +6 -0
  126. data/spec/fixtures/ol/mixed.md +6 -0
  127. data/spec/fixtures/ol/nested-separated.adoc +7 -0
  128. data/spec/fixtures/ol/nested-separated.md +13 -0
  129. data/spec/fixtures/ol/nested.adoc +7 -0
  130. data/spec/fixtures/ol/nested.md +7 -0
  131. data/spec/fixtures/ol/simple-separated.adoc +4 -0
  132. data/spec/fixtures/ol/simple-separated.md +7 -0
  133. data/spec/fixtures/ol/simple.adoc +4 -0
  134. data/spec/fixtures/ol/simple.md +4 -0
  135. data/spec/fixtures/p/admonition/emphasis.adoc +11 -0
  136. data/spec/fixtures/p/admonition/emphasis.md +11 -0
  137. data/spec/fixtures/p/admonition/in-list-item.adoc +6 -0
  138. data/spec/fixtures/p/admonition/in-list-item.md +6 -0
  139. data/spec/fixtures/p/admonition/plain.adoc +11 -0
  140. data/spec/fixtures/p/admonition/plain.md +11 -0
  141. data/spec/fixtures/p/admonition/strong-emphasis.adoc +11 -0
  142. data/spec/fixtures/p/admonition/strong-emphasis.md +11 -0
  143. data/spec/fixtures/p/multiple-lines.adoc +2 -0
  144. data/spec/fixtures/p/multiple-lines.md +2 -0
  145. data/spec/fixtures/p/multiple.adoc +3 -0
  146. data/spec/fixtures/p/multiple.md +3 -0
  147. data/spec/fixtures/p/single-line.adoc +1 -0
  148. data/spec/fixtures/p/single-line.md +1 -0
  149. data/spec/fixtures/root/body-only.adoc +1 -0
  150. data/spec/fixtures/root/body-only.md +1 -0
  151. data/spec/fixtures/root/book-doctype.adoc +10 -0
  152. data/spec/fixtures/root/book-doctype.md +9 -0
  153. data/spec/fixtures/root/header-and-body.adoc +3 -0
  154. data/spec/fixtures/root/header-and-body.md +3 -0
  155. data/spec/fixtures/root/header-only.adoc +1 -0
  156. data/spec/fixtures/root/header-only.md +1 -0
  157. data/spec/fixtures/smart_quote/apostrophe.adoc +1 -0
  158. data/spec/fixtures/smart_quote/apostrophe.md +1 -0
  159. data/spec/fixtures/smart_quote/double-quotes.adoc +1 -0
  160. data/spec/fixtures/smart_quote/double-quotes.md +1 -0
  161. data/spec/fixtures/smart_quote/single-quotes.adoc +1 -0
  162. data/spec/fixtures/smart_quote/single-quotes.md +1 -0
  163. data/spec/fixtures/strong/constrained.adoc +1 -0
  164. data/spec/fixtures/strong/constrained.md +1 -0
  165. data/spec/fixtures/strong/nested-emphasis.adoc +1 -0
  166. data/spec/fixtures/strong/nested-emphasis.md +1 -0
  167. data/spec/fixtures/table/with-header.adoc +9 -0
  168. data/spec/fixtures/table/with-header.md +4 -0
  169. data/spec/fixtures/table/without-header.adoc +8 -0
  170. data/spec/fixtures/table/without-header.md +2 -0
  171. data/spec/fixtures/text/lte.adoc +1 -0
  172. data/spec/fixtures/text/lte.md +1 -0
  173. data/spec/fixtures/text/plus-plus.adoc +6 -0
  174. data/spec/fixtures/text/plus-plus.md +5 -0
  175. data/spec/fixtures/text/typographic_sym/apostrophe.adoc +1 -0
  176. data/spec/fixtures/text/typographic_sym/apostrophe.md +1 -0
  177. data/spec/fixtures/text/typographic_sym/double-quotes.adoc +1 -0
  178. data/spec/fixtures/text/typographic_sym/double-quotes.md +1 -0
  179. data/spec/fixtures/text/typographic_sym/ellipsis.adoc +1 -0
  180. data/spec/fixtures/text/typographic_sym/ellipsis.md +1 -0
  181. data/spec/fixtures/text/typographic_sym/mdash.adoc +1 -0
  182. data/spec/fixtures/text/typographic_sym/mdash.md +1 -0
  183. data/spec/fixtures/text/typographic_sym/ndash.adoc +1 -0
  184. data/spec/fixtures/text/typographic_sym/ndash.md +1 -0
  185. data/spec/fixtures/text/typographic_sym/single-quotes.adoc +1 -0
  186. data/spec/fixtures/text/typographic_sym/single-quotes.md +1 -0
  187. data/spec/fixtures/typographic_sym/ellipsis.adoc +1 -0
  188. data/spec/fixtures/typographic_sym/ellipsis.md +1 -0
  189. data/spec/fixtures/typographic_sym/mdash.adoc +1 -0
  190. data/spec/fixtures/typographic_sym/mdash.md +1 -0
  191. data/spec/fixtures/typographic_sym/ndash.adoc +1 -0
  192. data/spec/fixtures/typographic_sym/ndash.md +1 -0
  193. data/spec/fixtures/ul/compound-separated.adoc +25 -0
  194. data/spec/fixtures/ul/compound-separated.md +23 -0
  195. data/spec/fixtures/ul/compound.adoc +25 -0
  196. data/spec/fixtures/ul/compound.md +18 -0
  197. data/spec/fixtures/ul/nested-separated.adoc +11 -0
  198. data/spec/fixtures/ul/nested-separated.md +21 -0
  199. data/spec/fixtures/ul/nested.adoc +11 -0
  200. data/spec/fixtures/ul/nested.md +11 -0
  201. data/spec/fixtures/ul/simple-separated.adoc +3 -0
  202. data/spec/fixtures/ul/simple-separated.md +5 -0
  203. data/spec/fixtures/ul/simple.adoc +3 -0
  204. data/spec/fixtures/ul/simple.md +3 -0
  205. data/spec/fixtures/xml_comment/block.adoc +7 -0
  206. data/spec/fixtures/xml_comment/block.md +6 -0
  207. data/spec/fixtures/xml_comment/line-offset-by-space.adoc +1 -0
  208. data/spec/fixtures/xml_comment/line-offset-by-space.md +1 -0
  209. data/spec/fixtures/xml_comment/line.adoc +1 -0
  210. data/spec/fixtures/xml_comment/line.md +1 -0
  211. data/spec/fixtures/xml_comment/list-separator.adoc +7 -0
  212. data/spec/fixtures/xml_comment/list-separator.md +7 -0
  213. data/spec/fixtures/xml_comment/mixed.adoc +7 -0
  214. data/spec/fixtures/xml_comment/mixed.md +6 -0
  215. data/spec/fixtures/xml_comment/multiline-span.adoc +4 -0
  216. data/spec/fixtures/xml_comment/multiline-span.md +3 -0
  217. data/spec/fixtures/xml_comment/styled.adoc +6 -0
  218. data/spec/fixtures/xml_comment/styled.md +6 -0
  219. data/spec/integration_spec.rb +27 -0
  220. data/spec/spec_helper.rb +9 -0
  221. metadata +533 -0
@@ -0,0 +1,3 @@
1
+ module Kramdown; module AsciiDoc
2
+ VERSION = '1.0.0.alpha.1'
3
+ end; end
@@ -0,0 +1,114 @@
1
+ require_relative 'spec_helper'
2
+
3
+ describe Kramdown::AsciiDoc::Converter do
4
+ let(:opts) { Kramdown::AsciiDoc::DEFAULT_PARSER_OPTS }
5
+ let(:doc) { Kramdown::Document.new input, opts }
6
+ let(:root) { doc.root }
7
+
8
+ context '#convert' do
9
+ let (:input) { %(# Document Title\n\nBody text.) }
10
+ it 'adds line feed (EOL) to end of output document' do
11
+ converter = described_class.send :new, root, {}
12
+ (expect converter.convert root).to end_with %(\n)
13
+ (expect doc.to_asciidoc).to end_with %(\n)
14
+ end
15
+ end
16
+
17
+ context '.replace_toc' do
18
+ it 'does not modify source if TOC directive not detected' do
19
+ input = <<~EOS
20
+ # Database Guide
21
+
22
+ ...
23
+ EOS
24
+
25
+ attributes = {}
26
+ (expect Kramdown::AsciiDoc.replace_toc input, attributes).to be input
27
+ (expect attributes).to be_empty
28
+ end
29
+
30
+ it 'replaces TOC directive with a toc block macro' do
31
+ input = <<~EOS
32
+ # Database Guide
33
+
34
+ This tutorial walks you through the steps to set up a database instance.
35
+
36
+ <!-- TOC depthFrom:2 depthTo:6 withLinks:1 updateOnSave:1 -->
37
+
38
+ - [Prerequisites](#prerequisites)
39
+ - [Create an Instance](#1-create-instance)
40
+ - [Create a User](#2-create-user)
41
+ - [Create a user using the CLI](#create-user-using-cli)
42
+ - [Create a user using the UI](#create-user-using-ui)
43
+ - [Insert Data](#3-insert-data)
44
+ - [Start Instance](#4-start-instance)
45
+
46
+ <!-- /TOC -->
47
+
48
+ ...
49
+ EOS
50
+
51
+ expected = <<~EOS
52
+ # Database Guide
53
+
54
+ This tutorial walks you through the steps to set up a database instance.
55
+
56
+ toc::[]
57
+
58
+ ...
59
+ EOS
60
+
61
+ attributes = {}
62
+ (expect Kramdown::AsciiDoc.replace_toc input, attributes).to eql expected
63
+ (expect attributes['toc']).to eql 'macro'
64
+ end
65
+ end
66
+
67
+ context '.extract_front_matter' do
68
+ it 'does not modify source if front matter not detected' do
69
+ input = <<~EOS
70
+ # Introduction
71
+
72
+ content
73
+
74
+ ---
75
+
76
+ more content
77
+ EOS
78
+
79
+ attributes = {}
80
+ (expect Kramdown::AsciiDoc.extract_front_matter input, attributes).to be input
81
+ (expect attributes).to be_empty
82
+ end
83
+
84
+ it 'extracts front matter and assigns entries to attributes' do
85
+ input = <<~EOS
86
+ ---
87
+ title: Introduction
88
+ description: An introduction to this amazing technology.
89
+ keywords: buzz, transformative
90
+ layout: default
91
+ ---
92
+
93
+ # Introduction
94
+
95
+ When using this technology, anything is possible.
96
+ EOS
97
+
98
+ expected = <<~EOS
99
+ # Introduction
100
+
101
+ When using this technology, anything is possible.
102
+ EOS
103
+
104
+ expected_attributes = {
105
+ 'description' => 'An introduction to this amazing technology.',
106
+ 'keywords' => 'buzz, transformative',
107
+ }
108
+
109
+ attributes = {}
110
+ (expect Kramdown::AsciiDoc.extract_front_matter input, attributes).to eql expected
111
+ (expect attributes).to eql expected_attributes
112
+ end
113
+ end
114
+ end
@@ -0,0 +1 @@
1
+ Use https://ecosia.org to plant trees while you search the web.
@@ -0,0 +1 @@
1
+ Use https://ecosia.org to plant trees while you search the web.
@@ -0,0 +1 @@
1
+ See xref:prerequisites.adoc[prerequisites] for details.
@@ -0,0 +1 @@
1
+ See [prerequisites](prerequisites.md) for details.
@@ -0,0 +1,5 @@
1
+ Use <<comparison-operators,Comparison Operators>> to compare the result of two expressions.
2
+
3
+ == Comparison Operators
4
+
5
+ Comparison operators are used to compare values.
@@ -0,0 +1,5 @@
1
+ Use [Comparison Operators](#comparison-operators) to compare the result of two expressions.
2
+
3
+ ## Comparison Operators
4
+
5
+ Comparison operators are used to compare values.
@@ -0,0 +1 @@
1
+ Take a look at the link:release-notes.html[release notes] to find a list of what changed.
@@ -0,0 +1 @@
1
+ Take a look at the [release notes](release-notes.html) to find a list of what changed.
@@ -0,0 +1 @@
1
+ Visit https://info.ecosia.org/what/ to learn about Ecosia's mission.
@@ -0,0 +1 @@
1
+ Visit [https://info.ecosia.org/what](https://info.ecosia.org/what/) to learn about Ecosia's mission.
@@ -0,0 +1 @@
1
+ Use https://ecosia.org[Ecosia] to plant trees while you search the web.
@@ -0,0 +1 @@
1
+ Use [Ecosia](https://ecosia.org) to plant trees while you search the web.
@@ -0,0 +1,3 @@
1
+ ____
2
+ Something someone said.
3
+ ____
@@ -0,0 +1 @@
1
+ > Something someone said.
@@ -0,0 +1,5 @@
1
+ ____
2
+ * Liberté
3
+ * Égalité
4
+ * Fraternité
5
+ ____
@@ -0,0 +1,3 @@
1
+ > - Liberté
2
+ > - Égalité
3
+ > - Fraternité
@@ -0,0 +1,5 @@
1
+ ____
2
+ Roads?
3
+
4
+ Where we're going, we don't need roads.
5
+ ____
@@ -0,0 +1,3 @@
1
+ > Roads?
2
+ >
3
+ > Where we're going, we don't need roads.
@@ -0,0 +1,7 @@
1
+ ____
2
+ ______
3
+ What's new?
4
+ ______
5
+
6
+ I'm switching to AsciiDoc!
7
+ ____
@@ -0,0 +1,3 @@
1
+ > > What's new?
2
+ >
3
+ > I'm switching to AsciiDoc!
@@ -0,0 +1,5 @@
1
+ [,James Baldwin]
2
+ ____
3
+ Not everything that is faced can be changed.
4
+ But nothing can be changed until it is faced.
5
+ ____
@@ -0,0 +1,3 @@
1
+ > Not everything that is faced can be changed.
2
+ > But nothing can be changed until it is faced.
3
+ > -- James Baldwin
@@ -0,0 +1,3 @@
1
+ break +
2
+ your +
3
+ _lines_
@@ -0,0 +1,3 @@
1
+ break<br>
2
+ your<br>
3
+ *lines*
@@ -0,0 +1,3 @@
1
+ break +
2
+ your +
3
+ _lines_
@@ -0,0 +1 @@
1
+ break <br/>your <br/>*lines*
@@ -0,0 +1,3 @@
1
+ break +
2
+ your +
3
+ _lines_
@@ -0,0 +1 @@
1
+ break<br>your<br>*lines*
@@ -0,0 +1,3 @@
1
+ break +
2
+ your +
3
+ _lines_
@@ -0,0 +1,3 @@
1
+ break
2
+ your
3
+ *lines*
@@ -0,0 +1,5 @@
1
+ ----
2
+ baseImage: server
3
+ version: 5.0.1
4
+ paused: false
5
+ ----
@@ -0,0 +1,3 @@
1
+ baseImage: server
2
+ version: 5.0.1
3
+ paused: false
@@ -0,0 +1,4 @@
1
+ [source,console]
2
+ ----
3
+ $ docker -it --run node:8-alpine
4
+ ----
@@ -0,0 +1,3 @@
1
+ ```bash
2
+ $ docker -it --run node:8-alpine
3
+ ```
@@ -0,0 +1 @@
1
+ $ docker -it --run node:8-alpine
@@ -0,0 +1,3 @@
1
+ ```
2
+ $ docker -it --run node:8-alpine
3
+ ```
@@ -0,0 +1,8 @@
1
+ [source,java]
2
+ ----
3
+ public class AllYourCode {
4
+ public String getBelongsTo() {
5
+ return "Us!";
6
+ }
7
+ }
8
+ ----
@@ -0,0 +1,7 @@
1
+ ```java
2
+ public class AllYourCode {
3
+ public String getBelongsTo() {
4
+ return "Us!";
5
+ }
6
+ }
7
+ ```
@@ -0,0 +1,5 @@
1
+ ....
2
+ $ cd project
3
+
4
+ $ docker build
5
+ ....
@@ -0,0 +1,5 @@
1
+ ```
2
+ $ cd project
3
+
4
+ $ docker build
5
+ ```
@@ -0,0 +1,5 @@
1
+ ----
2
+ All your code.
3
+
4
+ Belong to us.
5
+ ----
@@ -0,0 +1,5 @@
1
+ ```
2
+ All your code.
3
+
4
+ Belong to us.
5
+ ```
@@ -0,0 +1,7 @@
1
+ ----
2
+ SelectBlock ::= SelectClause
3
+ ( FromClause )?
4
+ ( WhereClause )?
5
+
6
+ SelectClause ::= <SELECT> ( <ALL> | <DISTINCT> )? ( SelectRegular | SelectValue )
7
+ ----
@@ -0,0 +1,5 @@
1
+ SelectBlock ::= SelectClause
2
+ ( FromClause )?
3
+ ( WhereClause )?
4
+
5
+ SelectClause ::= <SELECT> ( <ALL> | <DISTINCT> )? ( SelectRegular | SelectValue )
@@ -0,0 +1 @@
1
+ $ docker -it --run node:8-alpine
@@ -0,0 +1 @@
1
+ $ docker -it --run node:8-alpine
@@ -0,0 +1,5 @@
1
+ ....
2
+ $ cd project
3
+
4
+ $ docker build
5
+ ....
@@ -0,0 +1,3 @@
1
+ $ cd project
2
+
3
+ $ docker build
@@ -0,0 +1 @@
1
+ A boolean value can be `true` or `false`.
@@ -0,0 +1 @@
1
+ A boolean value can be `true` or `false`.
@@ -0,0 +1,3 @@
1
+ Use the `+<=+` operator to define a version that is less than or equal to a specific version.
2
+
3
+ Use `+(start...end)+` to create a range from start to end that excludes the last element.
@@ -0,0 +1,3 @@
1
+ Use the `<=` operator to define a version that is less than or equal to a specific version.
2
+
3
+ Use `(start...end)` to create a range from start to end that excludes the last element.
@@ -0,0 +1 @@
1
+ This is known as a _*composite type*_.
@@ -0,0 +1 @@
1
+ This is known as a _*composite type*_.
@@ -0,0 +1 @@
1
+ This is so _easy_.
@@ -0,0 +1 @@
1
+ This is so *easy*.
@@ -0,0 +1 @@
1
+ 1 &#43; 1 &#61; 2
@@ -0,0 +1 @@
1
+ 1 &#43; 1 &#61; 2
@@ -0,0 +1 @@
1
+ <undefined>
@@ -0,0 +1 @@
1
+ &lt;undefined&gt;
@@ -0,0 +1,23 @@
1
+ = User Guide
2
+
3
+ [discrete]
4
+ === DISCLAIMER
5
+
6
+ This is not a section.
7
+
8
+ [discrete]
9
+ === Before we get started
10
+
11
+ Also not a section.
12
+
13
+ == Let's get going
14
+
15
+ Now we're talking.
16
+
17
+ === Installation
18
+
19
+ Do this stuff.
20
+
21
+ == Next steps
22
+
23
+ Now we're getting to the good stuff.
@@ -0,0 +1,21 @@
1
+ # User Guide
2
+
3
+ ### DISCLAIMER
4
+
5
+ This is not a section.
6
+
7
+ ### Before we get started
8
+
9
+ Also not a section.
10
+
11
+ ## Let's get going
12
+
13
+ Now we're talking.
14
+
15
+ ### Installation
16
+
17
+ Do this stuff.
18
+
19
+ ## Next steps
20
+
21
+ Now we're getting to the good stuff.