kramdown-asciidoc 1.0.0.alpha.3 → 1.0.0.alpha.4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (302) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.adoc +25 -0
  3. data/README.adoc +3 -2
  4. data/bin/kramdoc +1 -1
  5. data/kramdown-asciidoc.gemspec +3 -3
  6. data/lib/kramdown-asciidoc.rb +2 -3
  7. data/lib/kramdown-asciidoc/converter.rb +85 -47
  8. data/lib/kramdown-asciidoc/version.rb +1 -1
  9. data/spec/converter_spec.rb +139 -10
  10. data/spec/integration_spec.rb +3 -5
  11. data/spec/{fixtures → scenarios}/a/bare-url.adoc +0 -0
  12. data/spec/{fixtures → scenarios}/a/bare-url.md +0 -0
  13. data/spec/{fixtures → scenarios}/a/containing-inline-image.adoc +0 -0
  14. data/spec/{fixtures → scenarios}/a/containing-inline-image.md +0 -0
  15. data/spec/{fixtures → scenarios}/a/double-underscore-in-url.adoc +0 -0
  16. data/spec/{fixtures → scenarios}/a/double-underscore-in-url.md +0 -0
  17. data/spec/{fixtures → scenarios}/a/interdoc-xref.adoc +0 -0
  18. data/spec/{fixtures → scenarios}/a/interdoc-xref.md +0 -0
  19. data/spec/{fixtures → scenarios}/a/internal.adoc +0 -0
  20. data/spec/{fixtures → scenarios}/a/internal.md +0 -0
  21. data/spec/{fixtures → scenarios}/a/local.adoc +0 -0
  22. data/spec/{fixtures → scenarios}/a/local.md +0 -0
  23. data/spec/scenarios/a/url-matches-text.adoc +2 -0
  24. data/spec/scenarios/a/url-matches-text.md +2 -0
  25. data/spec/{fixtures → scenarios}/a/url-with-text.adoc +0 -0
  26. data/spec/{fixtures → scenarios}/a/url-with-text.md +0 -0
  27. data/spec/{fixtures/blockquote/with-attribution.adoc → scenarios/blockquote/attribution-separated.adoc} +0 -0
  28. data/spec/scenarios/blockquote/attribution-separated.md +4 -0
  29. data/spec/{fixtures → scenarios}/blockquote/basic.adoc +0 -0
  30. data/spec/{fixtures → scenarios}/blockquote/basic.md +0 -0
  31. data/spec/scenarios/blockquote/deep-nested.adoc +14 -0
  32. data/spec/scenarios/blockquote/deep-nested.md +6 -0
  33. data/spec/{fixtures → scenarios}/blockquote/list.adoc +0 -0
  34. data/spec/{fixtures → scenarios}/blockquote/list.md +0 -0
  35. data/spec/{fixtures → scenarios}/blockquote/multiple-lines.adoc +0 -0
  36. data/spec/{fixtures → scenarios}/blockquote/multiple-lines.md +0 -0
  37. data/spec/{fixtures → scenarios}/blockquote/nested.adoc +0 -0
  38. data/spec/{fixtures → scenarios}/blockquote/nested.md +0 -0
  39. data/spec/scenarios/blockquote/with-attribution.adoc +5 -0
  40. data/spec/{fixtures → scenarios}/blockquote/with-attribution.md +0 -0
  41. data/spec/scenarios/br/leading-tag.adoc +2 -0
  42. data/spec/scenarios/br/leading-tag.md +2 -0
  43. data/spec/{fixtures → scenarios}/br/tag-followed-by-newline.adoc +0 -0
  44. data/spec/{fixtures → scenarios}/br/tag-followed-by-newline.md +0 -0
  45. data/spec/{fixtures → scenarios}/br/tag-in-table-cell.adoc +0 -0
  46. data/spec/{fixtures → scenarios}/br/tag-in-table-cell.md +0 -0
  47. data/spec/{fixtures → scenarios}/br/tag-preceded-by-space.adoc +0 -0
  48. data/spec/{fixtures → scenarios}/br/tag-preceded-by-space.md +0 -0
  49. data/spec/{fixtures → scenarios}/br/tag.adoc +0 -0
  50. data/spec/{fixtures → scenarios}/br/tag.md +0 -0
  51. data/spec/{fixtures → scenarios}/br/trailing-double-space.adoc +0 -0
  52. data/spec/{fixtures → scenarios}/br/trailing-double-space.md +0 -0
  53. data/spec/scenarios/codeblock/contiguous-lines.adoc +3 -0
  54. data/spec/{fixtures → scenarios}/codeblock/contiguous-lines.md +0 -0
  55. data/spec/{fixtures → scenarios}/codeblock/fenced/with-command-prompt.adoc +0 -0
  56. data/spec/{fixtures → scenarios}/codeblock/fenced/with-command-prompt.md +0 -0
  57. data/spec/{fixtures → scenarios}/codeblock/fenced/with-language.adoc +0 -0
  58. data/spec/{fixtures → scenarios}/codeblock/fenced/with-language.md +0 -0
  59. data/spec/{fixtures → scenarios}/codeblock/fenced/with-non-contiguous-command-prompts.adoc +3 -2
  60. data/spec/{fixtures → scenarios}/codeblock/fenced/with-non-contiguous-command-prompts.md +0 -0
  61. data/spec/{fixtures → scenarios}/codeblock/fenced/without-language.adoc +0 -0
  62. data/spec/{fixtures → scenarios}/codeblock/fenced/without-language.md +0 -0
  63. data/spec/{fixtures → scenarios}/codeblock/non-contiguous-lines.adoc +2 -2
  64. data/spec/{fixtures → scenarios}/codeblock/non-contiguous-lines.md +0 -0
  65. data/spec/{fixtures → scenarios}/codeblock/with-command-prompt.adoc +0 -0
  66. data/spec/{fixtures → scenarios}/codeblock/with-command-prompt.md +0 -0
  67. data/spec/{fixtures → scenarios}/codeblock/with-non-contiguous-command-prompts.adoc +3 -2
  68. data/spec/{fixtures → scenarios}/codeblock/with-non-contiguous-command-prompts.md +0 -0
  69. data/spec/{fixtures → scenarios}/codespan/constrained.adoc +0 -0
  70. data/spec/{fixtures → scenarios}/codespan/constrained.md +0 -0
  71. data/spec/{fixtures → scenarios}/codespan/literal.adoc +0 -0
  72. data/spec/{fixtures → scenarios}/codespan/literal.md +0 -0
  73. data/spec/scenarios/dlist/compound.adoc +13 -0
  74. data/spec/scenarios/dlist/compound.md +7 -0
  75. data/spec/scenarios/dlist/nested-mixed.adoc +11 -0
  76. data/spec/scenarios/dlist/nested-mixed.md +11 -0
  77. data/spec/scenarios/dlist/nested.adoc +23 -0
  78. data/spec/scenarios/dlist/nested.md +23 -0
  79. data/spec/scenarios/dlist/simple.adoc +5 -0
  80. data/spec/scenarios/dlist/simple.md +5 -0
  81. data/spec/{fixtures → scenarios}/em/asterisks.adoc +0 -0
  82. data/spec/{fixtures → scenarios}/em/asterisks.md +0 -0
  83. data/spec/scenarios/em/constrained.adoc +1 -0
  84. data/spec/scenarios/em/constrained.md +1 -0
  85. data/spec/scenarios/em/strong.adoc +1 -0
  86. data/spec/scenarios/em/strong.md +1 -0
  87. data/spec/{fixtures → scenarios}/entity/numeric.adoc +0 -0
  88. data/spec/{fixtures → scenarios}/entity/numeric.md +0 -0
  89. data/spec/{fixtures → scenarios}/entity/reverse.adoc +0 -0
  90. data/spec/{fixtures → scenarios}/entity/reverse.md +0 -0
  91. data/spec/{fixtures → scenarios}/heading/block-title.adoc +1 -0
  92. data/spec/{fixtures → scenarios}/heading/block-title.md +3 -1
  93. data/spec/{fixtures → scenarios}/heading/not-block-title.adoc +0 -0
  94. data/spec/{fixtures → scenarios}/heading/not-block-title.md +0 -0
  95. data/spec/{fixtures → scenarios}/heading/out-of-sequence.adoc +0 -0
  96. data/spec/{fixtures → scenarios}/heading/out-of-sequence.md +0 -0
  97. data/spec/{fixtures → scenarios}/heading/outline.adoc +0 -0
  98. data/spec/{fixtures → scenarios}/heading/outline.md +0 -0
  99. data/spec/{fixtures → scenarios}/heading/with-anchor.adoc +0 -0
  100. data/spec/{fixtures → scenarios}/heading/with-anchor.md +0 -0
  101. data/spec/{fixtures → scenarios}/heading/with-formatting.adoc +0 -0
  102. data/spec/{fixtures → scenarios}/heading/with-formatting.md +0 -0
  103. data/spec/scenarios/hr/around-block.adoc +5 -0
  104. data/spec/scenarios/hr/around-block.md +5 -0
  105. data/spec/{fixtures → scenarios}/hr/between-blocks.adoc +0 -0
  106. data/spec/{fixtures → scenarios}/hr/between-blocks.md +0 -0
  107. data/spec/{fixtures → scenarios}/hr/dashes.adoc +0 -0
  108. data/spec/{fixtures → scenarios}/hr/dashes.md +0 -0
  109. data/spec/{fixtures → scenarios}/html_element/abbr.adoc +0 -0
  110. data/spec/{fixtures → scenarios}/html_element/abbr.md +0 -0
  111. data/spec/{fixtures → scenarios}/html_element/admonition.adoc +0 -0
  112. data/spec/{fixtures → scenarios}/html_element/admonition.md +0 -0
  113. data/spec/{fixtures → scenarios}/html_element/empty-p.adoc +0 -0
  114. data/spec/{fixtures → scenarios}/html_element/empty-p.md +0 -0
  115. data/spec/{fixtures → scenarios}/html_element/heading-with-class.adoc +0 -0
  116. data/spec/{fixtures → scenarios}/html_element/heading-with-class.md +0 -0
  117. data/spec/{fixtures → scenarios}/html_element/heading-with-id.adoc +0 -0
  118. data/spec/{fixtures → scenarios}/html_element/heading-with-id.md +0 -0
  119. data/spec/{fixtures → scenarios}/html_element/img-with-alt-and-width.adoc +0 -0
  120. data/spec/{fixtures → scenarios}/html_element/img-with-alt-and-width.md +0 -0
  121. data/spec/scenarios/html_element/img-with-percentage-width-css.adoc +1 -0
  122. data/spec/scenarios/html_element/img-with-percentage-width-css.md +1 -0
  123. data/spec/scenarios/html_element/img-with-percentage-width.adoc +1 -0
  124. data/spec/scenarios/html_element/img-with-percentage-width.md +1 -0
  125. data/spec/{fixtures/html_element/img-with-css-width.adoc → scenarios/html_element/img-with-width-css.adoc} +0 -0
  126. data/spec/{fixtures/html_element/img-with-css-width.md → scenarios/html_element/img-with-width-css.md} +0 -0
  127. data/spec/{fixtures → scenarios}/html_element/img-with-width.adoc +0 -0
  128. data/spec/{fixtures → scenarios}/html_element/img-with-width.md +0 -0
  129. data/spec/{fixtures → scenarios}/html_element/img.adoc +0 -0
  130. data/spec/{fixtures → scenarios}/html_element/img.md +0 -0
  131. data/spec/{fixtures → scenarios}/html_element/native.adoc +0 -0
  132. data/spec/{fixtures → scenarios}/html_element/native.md +0 -0
  133. data/spec/scenarios/html_element/pre-code-with-language.adoc +6 -0
  134. data/spec/scenarios/html_element/pre-code-with-language.md +4 -0
  135. data/spec/scenarios/html_element/strike.adoc +1 -0
  136. data/spec/scenarios/html_element/strike.md +1 -0
  137. data/spec/{fixtures → scenarios}/html_element/sub.adoc +0 -0
  138. data/spec/{fixtures → scenarios}/html_element/sub.md +0 -0
  139. data/spec/{fixtures → scenarios}/html_element/sup.adoc +0 -0
  140. data/spec/{fixtures → scenarios}/html_element/sup.md +0 -0
  141. data/spec/scenarios/img/block-in-list.adoc +5 -0
  142. data/spec/scenarios/img/block-in-list.md +5 -0
  143. data/spec/{fixtures → scenarios}/img/block-with-alt.adoc +0 -0
  144. data/spec/{fixtures → scenarios}/img/block-with-alt.md +0 -0
  145. data/spec/{fixtures → scenarios}/img/block-with-link-and-alt.adoc +0 -0
  146. data/spec/{fixtures → scenarios}/img/block-with-link-and-alt.md +0 -0
  147. data/spec/{fixtures → scenarios}/img/block-with-link.adoc +0 -0
  148. data/spec/{fixtures → scenarios}/img/block-with-link.md +0 -0
  149. data/spec/{fixtures → scenarios}/img/block.adoc +0 -0
  150. data/spec/{fixtures → scenarios}/img/block.md +0 -0
  151. data/spec/{fixtures → scenarios}/img/imagesdir.adoc +0 -0
  152. data/spec/{fixtures → scenarios}/img/imagesdir.md +0 -0
  153. data/spec/{fixtures → scenarios}/img/imagesdir.opts +0 -0
  154. data/spec/{fixtures → scenarios}/img/implicit-imagesdir.adoc +0 -0
  155. data/spec/{fixtures → scenarios}/img/implicit-imagesdir.md +0 -0
  156. data/spec/{fixtures → scenarios}/img/implicit-imagesdir.opts +0 -0
  157. data/spec/{fixtures → scenarios}/img/inline-with-alt.adoc +0 -0
  158. data/spec/{fixtures → scenarios}/img/inline-with-alt.md +0 -0
  159. data/spec/{fixtures → scenarios}/img/inline-with-link-and-alt.adoc +0 -0
  160. data/spec/{fixtures → scenarios}/img/inline-with-link-and-alt.md +0 -0
  161. data/spec/{fixtures → scenarios}/img/inline-with-link.adoc +0 -0
  162. data/spec/{fixtures → scenarios}/img/inline-with-link.md +0 -0
  163. data/spec/{fixtures → scenarios}/img/inline.adoc +0 -0
  164. data/spec/{fixtures → scenarios}/img/inline.md +0 -0
  165. data/spec/{fixtures → scenarios}/ol/compound-separated.adoc +5 -1
  166. data/spec/{fixtures/ol/compound.md → scenarios/ol/compound-separated.md} +8 -1
  167. data/spec/{fixtures → scenarios}/ol/compound.adoc +5 -1
  168. data/spec/{fixtures/ol/compound-separated.md → scenarios/ol/compound.md} +3 -6
  169. data/spec/scenarios/ol/formatted.adoc +3 -0
  170. data/spec/scenarios/ol/formatted.md +3 -0
  171. data/spec/{fixtures → scenarios}/ol/mixed-separated.adoc +0 -0
  172. data/spec/{fixtures → scenarios}/ol/mixed-separated.md +0 -0
  173. data/spec/{fixtures → scenarios}/ol/mixed.adoc +0 -0
  174. data/spec/{fixtures → scenarios}/ol/mixed.md +0 -0
  175. data/spec/scenarios/ol/nested-mixed.adoc +8 -0
  176. data/spec/scenarios/ol/nested-mixed.md +8 -0
  177. data/spec/{fixtures → scenarios}/ol/nested-separated.adoc +0 -0
  178. data/spec/{fixtures → scenarios}/ol/nested-separated.md +0 -0
  179. data/spec/{fixtures → scenarios}/ol/nested.adoc +0 -0
  180. data/spec/{fixtures → scenarios}/ol/nested.md +0 -0
  181. data/spec/{fixtures → scenarios}/ol/simple-separated.adoc +0 -0
  182. data/spec/{fixtures → scenarios}/ol/simple-separated.md +0 -0
  183. data/spec/{fixtures → scenarios}/ol/simple.adoc +0 -0
  184. data/spec/{fixtures → scenarios}/ol/simple.md +0 -0
  185. data/spec/{fixtures → scenarios}/p/admonition/emphasis.adoc +0 -0
  186. data/spec/{fixtures → scenarios}/p/admonition/emphasis.md +0 -0
  187. data/spec/{fixtures → scenarios}/p/admonition/in-list-item.adoc +0 -0
  188. data/spec/{fixtures → scenarios}/p/admonition/in-list-item.md +0 -0
  189. data/spec/{fixtures → scenarios}/p/admonition/plain.adoc +0 -0
  190. data/spec/{fixtures → scenarios}/p/admonition/plain.md +0 -0
  191. data/spec/{fixtures → scenarios}/p/admonition/strong-emphasis.adoc +0 -0
  192. data/spec/{fixtures → scenarios}/p/admonition/strong-emphasis.md +0 -0
  193. data/spec/{fixtures → scenarios}/p/multiple-lines.adoc +0 -0
  194. data/spec/{fixtures → scenarios}/p/multiple-lines.md +0 -0
  195. data/spec/{fixtures → scenarios}/p/sequential.adoc +0 -0
  196. data/spec/{fixtures → scenarios}/p/sequential.md +0 -0
  197. data/spec/{fixtures → scenarios}/p/single-line.adoc +0 -0
  198. data/spec/{fixtures → scenarios}/p/single-line.md +0 -0
  199. data/spec/{fixtures → scenarios}/root/body-only.adoc +0 -0
  200. data/spec/{fixtures → scenarios}/root/body-only.md +0 -0
  201. data/spec/{fixtures → scenarios}/root/book-doctype.adoc +0 -0
  202. data/spec/{fixtures → scenarios}/root/book-doctype.md +0 -0
  203. data/spec/{fixtures → scenarios}/root/header-and-body.adoc +0 -0
  204. data/spec/{fixtures → scenarios}/root/header-and-body.md +0 -0
  205. data/spec/{fixtures → scenarios}/root/header-only.adoc +0 -0
  206. data/spec/{fixtures → scenarios}/root/header-only.md +0 -0
  207. data/spec/{fixtures → scenarios}/smart_quote/apostrophe.adoc +0 -0
  208. data/spec/{fixtures → scenarios}/smart_quote/apostrophe.md +0 -0
  209. data/spec/{fixtures → scenarios}/smart_quote/double-quotes.adoc +0 -0
  210. data/spec/{fixtures → scenarios}/smart_quote/double-quotes.md +0 -0
  211. data/spec/{fixtures → scenarios}/smart_quote/single-quotes.adoc +0 -0
  212. data/spec/{fixtures → scenarios}/smart_quote/single-quotes.md +0 -0
  213. data/spec/scenarios/strong/constrained.adoc +1 -0
  214. data/spec/scenarios/strong/constrained.md +1 -0
  215. data/spec/scenarios/strong/menu.adoc +3 -0
  216. data/spec/scenarios/strong/menu.md +1 -0
  217. data/spec/{fixtures → scenarios}/strong/nested-emphasis.adoc +0 -0
  218. data/spec/{fixtures → scenarios}/strong/nested-emphasis.md +0 -0
  219. data/spec/{fixtures → scenarios}/table/alignment.adoc +0 -0
  220. data/spec/{fixtures → scenarios}/table/alignment.md +0 -0
  221. data/spec/scenarios/table/cell-with-image.adoc +9 -0
  222. data/spec/scenarios/table/cell-with-image.md +4 -0
  223. data/spec/{fixtures → scenarios}/table/cell-with-pipe.adoc +0 -0
  224. data/spec/{fixtures → scenarios}/table/cell-with-pipe.md +0 -0
  225. data/spec/{fixtures → scenarios}/table/single-column-with-header.adoc +0 -0
  226. data/spec/{fixtures → scenarios}/table/single-column-with-header.md +0 -0
  227. data/spec/{fixtures → scenarios}/table/single-column-without-header.adoc +0 -0
  228. data/spec/{fixtures → scenarios}/table/single-column-without-header.md +0 -0
  229. data/spec/{fixtures → scenarios}/table/with-header.adoc +0 -0
  230. data/spec/{fixtures → scenarios}/table/with-header.md +0 -0
  231. data/spec/{fixtures → scenarios}/table/without-header.adoc +0 -0
  232. data/spec/{fixtures → scenarios}/table/without-header.md +0 -0
  233. data/spec/{fixtures → scenarios}/text/caret.adoc +0 -0
  234. data/spec/{fixtures → scenarios}/text/caret.md +0 -0
  235. data/spec/{fixtures → scenarios}/text/lte.adoc +0 -0
  236. data/spec/{fixtures → scenarios}/text/lte.md +0 -0
  237. data/spec/{fixtures → scenarios}/text/plus-plus.adoc +0 -0
  238. data/spec/{fixtures → scenarios}/text/plus-plus.md +0 -0
  239. data/spec/{fixtures → scenarios}/text/typographic_sym/apostrophe.adoc +0 -0
  240. data/spec/{fixtures → scenarios}/text/typographic_sym/apostrophe.md +0 -0
  241. data/spec/{fixtures → scenarios}/text/typographic_sym/double-quotes.adoc +0 -0
  242. data/spec/{fixtures → scenarios}/text/typographic_sym/double-quotes.md +0 -0
  243. data/spec/{fixtures → scenarios}/text/typographic_sym/ellipsis.adoc +0 -0
  244. data/spec/{fixtures → scenarios}/text/typographic_sym/ellipsis.md +0 -0
  245. data/spec/{fixtures → scenarios}/text/typographic_sym/mdash.adoc +0 -0
  246. data/spec/{fixtures → scenarios}/text/typographic_sym/mdash.md +0 -0
  247. data/spec/{fixtures → scenarios}/text/typographic_sym/ndash.adoc +0 -0
  248. data/spec/{fixtures → scenarios}/text/typographic_sym/ndash.md +0 -0
  249. data/spec/{fixtures → scenarios}/text/typographic_sym/single-quotes.adoc +0 -0
  250. data/spec/{fixtures → scenarios}/text/typographic_sym/single-quotes.md +0 -0
  251. data/spec/scenarios/trailing_space.adoc +7 -0
  252. data/spec/scenarios/trailing_space.md +7 -0
  253. data/spec/{fixtures → scenarios}/typographic_sym/ellipsis.adoc +0 -0
  254. data/spec/{fixtures → scenarios}/typographic_sym/ellipsis.md +0 -0
  255. data/spec/{fixtures → scenarios}/typographic_sym/mdash.adoc +0 -0
  256. data/spec/{fixtures → scenarios}/typographic_sym/mdash.md +0 -0
  257. data/spec/{fixtures → scenarios}/typographic_sym/ndash.adoc +0 -0
  258. data/spec/{fixtures → scenarios}/typographic_sym/ndash.md +0 -0
  259. data/spec/scenarios/ul/blockquote.adoc +5 -0
  260. data/spec/scenarios/ul/blockquote.md +2 -0
  261. data/spec/scenarios/ul/compound-nested.adoc +21 -0
  262. data/spec/scenarios/ul/compound-nested.md +17 -0
  263. data/spec/{fixtures → scenarios}/ul/compound-separated.adoc +5 -1
  264. data/spec/{fixtures/ul/compound.md → scenarios/ul/compound-separated.md} +8 -1
  265. data/spec/{fixtures → scenarios}/ul/compound.adoc +5 -1
  266. data/spec/{fixtures/ul/compound-separated.md → scenarios/ul/compound.md} +3 -6
  267. data/spec/scenarios/ul/formatted.adoc +3 -0
  268. data/spec/scenarios/ul/formatted.md +3 -0
  269. data/spec/{fixtures → scenarios}/ul/nested-separated.adoc +0 -0
  270. data/spec/{fixtures → scenarios}/ul/nested-separated.md +0 -0
  271. data/spec/{fixtures → scenarios}/ul/nested.adoc +0 -0
  272. data/spec/{fixtures → scenarios}/ul/nested.md +0 -0
  273. data/spec/{fixtures → scenarios}/ul/simple-separated.adoc +0 -0
  274. data/spec/{fixtures → scenarios}/ul/simple-separated.md +0 -0
  275. data/spec/{fixtures → scenarios}/ul/simple.adoc +0 -0
  276. data/spec/{fixtures → scenarios}/ul/simple.md +0 -0
  277. data/spec/{fixtures → scenarios}/xml_comment/above-header.adoc +0 -0
  278. data/spec/{fixtures → scenarios}/xml_comment/above-header.md +0 -0
  279. data/spec/scenarios/xml_comment/at-start-of-line.adoc +9 -0
  280. data/spec/scenarios/xml_comment/at-start-of-line.md +4 -0
  281. data/spec/{fixtures → scenarios}/xml_comment/block.adoc +0 -0
  282. data/spec/{fixtures → scenarios}/xml_comment/block.md +0 -0
  283. data/spec/{fixtures → scenarios}/xml_comment/line-offset-by-space.adoc +0 -0
  284. data/spec/{fixtures → scenarios}/xml_comment/line-offset-by-space.md +0 -0
  285. data/spec/{fixtures → scenarios}/xml_comment/line.adoc +0 -0
  286. data/spec/{fixtures → scenarios}/xml_comment/line.md +0 -0
  287. data/spec/{fixtures → scenarios}/xml_comment/list-separator.adoc +1 -1
  288. data/spec/{fixtures → scenarios}/xml_comment/list-separator.md +0 -0
  289. data/spec/{fixtures → scenarios}/xml_comment/mixed.adoc +0 -0
  290. data/spec/{fixtures → scenarios}/xml_comment/mixed.md +0 -0
  291. data/spec/{fixtures → scenarios}/xml_comment/multiline-span.adoc +0 -0
  292. data/spec/{fixtures → scenarios}/xml_comment/multiline-span.md +0 -0
  293. data/spec/{fixtures → scenarios}/xml_comment/styled.adoc +0 -0
  294. data/spec/{fixtures → scenarios}/xml_comment/styled.md +0 -0
  295. metadata +574 -482
  296. data/spec/fixtures/a/url-matches-text.adoc +0 -1
  297. data/spec/fixtures/a/url-matches-text.md +0 -1
  298. data/spec/fixtures/codeblock/contiguous-lines.adoc +0 -5
  299. data/spec/fixtures/em/constrained.adoc +0 -1
  300. data/spec/fixtures/em/constrained.md +0 -1
  301. data/spec/fixtures/strong/constrained.adoc +0 -1
  302. data/spec/fixtures/strong/constrained.md +0 -1
@@ -2,11 +2,9 @@ require_relative 'spec_helper'
2
2
  require 'yaml'
3
3
 
4
4
  describe 'integration scenario' do
5
- FIXTURES_DIR = File.absolute_path 'fixtures', __dir__
6
-
7
5
  let(:doc) { Kramdown::Document.new input, (Kramdown::AsciiDoc::DEFAULT_PARSER_OPTS.merge extra_options) }
8
6
 
9
- Dir.chdir FIXTURES_DIR do
7
+ Dir.chdir File.absolute_path 'scenarios', __dir__ do
10
8
  (Dir.glob '**/*.md').each do |input_filename|
11
9
  input_stem = input_filename.slice 0, input_filename.length - 3
12
10
  scenario_name = input_stem.gsub '/', '::'
@@ -15,9 +13,9 @@ describe 'integration scenario' do
15
13
  input_filename = File.absolute_path input_filename
16
14
  output_filename = File.absolute_path %(#{input_stem}.adoc)
17
15
  context %(for #{scenario_name}) do
18
- let(:input) { ::IO.read input_filename, open_args: ['rb:UTF-8'] }
16
+ let(:input) { IO.read input_filename, mode: 'r:UTF-8', newline: :universal }
19
17
  let(:extra_options) { options }
20
- let(:expected) { ::IO.read output_filename, open_args: ['rb:UTF-8'] }
18
+ let(:expected) { IO.read output_filename, mode: 'r:UTF-8', newline: :universal }
21
19
  it 'converts Markdown to AsciiDoc' do
22
20
  (expect doc.to_asciidoc).to eql expected
23
21
  end
File without changes
@@ -0,0 +1,2 @@
1
+ https://ecosia.org is a search engine that donates 80% of its surplus to plant trees.
2
+ Visit https://info.ecosia.org/what/ to learn more about Ecosia's mission.
@@ -0,0 +1,2 @@
1
+ [https://ecosia.org](https://ecosia.org) is a search engine that donates 80% of its surplus to plant trees.
2
+ Visit [https://info.ecosia.org/what](https://info.ecosia.org/what/) to learn more about Ecosia's mission.
@@ -0,0 +1,4 @@
1
+ > Not everything that is faced can be changed.
2
+ > But nothing can be changed until it is faced.
3
+ >
4
+ > -- James Baldwin
@@ -0,0 +1,14 @@
1
+ Here's about how that conversation went:
2
+
3
+ ____
4
+ he said
5
+ ______
6
+ she said
7
+ ________
8
+ he said
9
+ __________
10
+ she said
11
+ __________
12
+ ________
13
+ ______
14
+ ____
@@ -0,0 +1,6 @@
1
+ Here's about how that conversation went:
2
+
3
+ > he said
4
+ > > she said
5
+ > > > he said
6
+ > > > > she said
@@ -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,2 @@
1
+ {blank} +
2
+ foo
@@ -0,0 +1,2 @@
1
+ <br>
2
+ foo
File without changes
File without changes
@@ -0,0 +1,3 @@
1
+ baseImage: server
2
+ version: 5.0.1
3
+ paused: false
@@ -1,5 +1,6 @@
1
- ....
1
+ [source,console]
2
+ ----
2
3
  $ cd project
3
4
 
4
5
  $ docker build
5
- ....
6
+ ----
@@ -1,7 +1,7 @@
1
- ----
1
+ ....
2
2
  SelectBlock ::= SelectClause
3
3
  ( FromClause )?
4
4
  ( WhereClause )?
5
5
 
6
6
  SelectClause ::= <SELECT> ( <ALL> | <DISTINCT> )? ( SelectRegular | SelectValue )
7
- ----
7
+ ....
@@ -1,5 +1,6 @@
1
- ....
1
+ [source,console]
2
+ ----
2
3
  $ cd project
3
4
 
4
5
  $ docker build
5
- ....
6
+ ----
@@ -0,0 +1,13 @@
1
+ kramdown::
2
+ A Markdown-superset converter
3
+ +
4
+ ____
5
+ Aren't they all?
6
+ ____
7
+
8
+ kramdown-asciidoc::
9
+ A Markdown to AsciiDoc converter based on kramdown
10
+ +
11
+ ____
12
+ AsciiDoc is where it's at!
13
+ ____
@@ -0,0 +1,7 @@
1
+ kramdown
2
+ : A Markdown-superset converter
3
+ > Aren't they all?
4
+
5
+ kramdown-asciidoc
6
+ : A Markdown to AsciiDoc converter based on kramdown
7
+ > AsciiDoc is where it's at!
@@ -0,0 +1,11 @@
1
+ kramdown::
2
+ A Markdown-superset converter (aren't they all?)
3
+ ** Fast
4
+ ** Free
5
+ ** Extensible
6
+
7
+ kramdown-asciidoc::
8
+ A Markdown to AsciiDoc converter
9
+ ** Based on kramdown
10
+ ** Outputs concise, modern AsciiDoc
11
+ ** Well tested
@@ -0,0 +1,11 @@
1
+ kramdown
2
+ : A Markdown-superset converter (aren't they all?)
3
+ * Fast
4
+ * Free
5
+ * Extensible
6
+
7
+ kramdown-asciidoc
8
+ : A Markdown to AsciiDoc converter
9
+ * Based on kramdown
10
+ * Outputs concise, modern AsciiDoc
11
+ * Well tested
@@ -0,0 +1,23 @@
1
+ kramdown::
2
+ A Markdown-superset converter
3
+
4
+ Language;;
5
+ Ruby
6
+
7
+ License;;
8
+ MIT
9
+
10
+ Author;;
11
+ Thomas Leitner
12
+
13
+ kramdown-asciidoc::
14
+ A Markdown to AsciiDoc converter based on kramdown
15
+
16
+ Language;;
17
+ Ruby
18
+
19
+ License;;
20
+ MIT
21
+
22
+ Author;;
23
+ Dan Allen
@@ -0,0 +1,23 @@
1
+ kramdown
2
+ : A Markdown-superset converter
3
+
4
+ Language
5
+ : Ruby
6
+
7
+ License
8
+ : MIT
9
+
10
+ Author
11
+ : Thomas Leitner
12
+
13
+ kramdown-asciidoc
14
+ : A Markdown to AsciiDoc converter based on kramdown
15
+
16
+ Language
17
+ : Ruby
18
+
19
+ License
20
+ : MIT
21
+
22
+ Author
23
+ : Dan Allen
@@ -0,0 +1,5 @@
1
+ kramdown::
2
+ A Markdown-superset converter (aren't they all?)
3
+
4
+ kramdown-asciidoc::
5
+ A Markdown to AsciiDoc converter based on kramdown
@@ -0,0 +1,5 @@
1
+ kramdown
2
+ : A Markdown-superset converter (aren't they all?)
3
+
4
+ kramdown-asciidoc
5
+ : A Markdown to AsciiDoc converter based on kramdown
@@ -0,0 +1 @@
1
+ This is _so_ _easy_.
@@ -0,0 +1 @@
1
+ This is _so_ *easy*.
@@ -0,0 +1 @@
1
+ Using *_bold and italic_* is the strongest way to emphasize text.
@@ -0,0 +1 @@
1
+ Using ***bold and italic*** is the strongest way to emphasize text.
@@ -3,6 +3,7 @@
3
3
  What follows is a listing with a block title.
4
4
 
5
5
  .Example
6
+ [source,sql]
6
7
  ----
7
8
  SELECT * from users u where u.id = 1;
8
9
  ----
@@ -4,6 +4,8 @@ What follows is a listing with a block title.
4
4
 
5
5
  ##### Example
6
6
 
7
- SELECT * from users u where u.id = 1;
7
+ ```sql
8
+ SELECT * from users u where u.id = 1;
9
+ ```
8
10
 
9
11
  This query should return exactly one result.
@@ -0,0 +1,5 @@
1
+ '''
2
+
3
+ Disclaimer: Many of these examples are fictional re-creations of real content.
4
+
5
+ '''
@@ -0,0 +1,5 @@
1
+ ---
2
+
3
+ Disclaimer: Many of these examples are fictional re-creations of real content.
4
+
5
+ ---