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.
- checksums.yaml +4 -4
- data/CHANGELOG.adoc +25 -0
- data/README.adoc +3 -2
- data/bin/kramdoc +1 -1
- data/kramdown-asciidoc.gemspec +3 -3
- data/lib/kramdown-asciidoc.rb +2 -3
- data/lib/kramdown-asciidoc/converter.rb +85 -47
- data/lib/kramdown-asciidoc/version.rb +1 -1
- data/spec/converter_spec.rb +139 -10
- data/spec/integration_spec.rb +3 -5
- data/spec/{fixtures → scenarios}/a/bare-url.adoc +0 -0
- data/spec/{fixtures → scenarios}/a/bare-url.md +0 -0
- data/spec/{fixtures → scenarios}/a/containing-inline-image.adoc +0 -0
- data/spec/{fixtures → scenarios}/a/containing-inline-image.md +0 -0
- data/spec/{fixtures → scenarios}/a/double-underscore-in-url.adoc +0 -0
- data/spec/{fixtures → scenarios}/a/double-underscore-in-url.md +0 -0
- data/spec/{fixtures → scenarios}/a/interdoc-xref.adoc +0 -0
- data/spec/{fixtures → scenarios}/a/interdoc-xref.md +0 -0
- data/spec/{fixtures → scenarios}/a/internal.adoc +0 -0
- data/spec/{fixtures → scenarios}/a/internal.md +0 -0
- data/spec/{fixtures → scenarios}/a/local.adoc +0 -0
- data/spec/{fixtures → scenarios}/a/local.md +0 -0
- data/spec/scenarios/a/url-matches-text.adoc +2 -0
- data/spec/scenarios/a/url-matches-text.md +2 -0
- data/spec/{fixtures → scenarios}/a/url-with-text.adoc +0 -0
- data/spec/{fixtures → scenarios}/a/url-with-text.md +0 -0
- data/spec/{fixtures/blockquote/with-attribution.adoc → scenarios/blockquote/attribution-separated.adoc} +0 -0
- data/spec/scenarios/blockquote/attribution-separated.md +4 -0
- data/spec/{fixtures → scenarios}/blockquote/basic.adoc +0 -0
- data/spec/{fixtures → scenarios}/blockquote/basic.md +0 -0
- data/spec/scenarios/blockquote/deep-nested.adoc +14 -0
- data/spec/scenarios/blockquote/deep-nested.md +6 -0
- data/spec/{fixtures → scenarios}/blockquote/list.adoc +0 -0
- data/spec/{fixtures → scenarios}/blockquote/list.md +0 -0
- data/spec/{fixtures → scenarios}/blockquote/multiple-lines.adoc +0 -0
- data/spec/{fixtures → scenarios}/blockquote/multiple-lines.md +0 -0
- data/spec/{fixtures → scenarios}/blockquote/nested.adoc +0 -0
- data/spec/{fixtures → scenarios}/blockquote/nested.md +0 -0
- data/spec/scenarios/blockquote/with-attribution.adoc +5 -0
- data/spec/{fixtures → scenarios}/blockquote/with-attribution.md +0 -0
- data/spec/scenarios/br/leading-tag.adoc +2 -0
- data/spec/scenarios/br/leading-tag.md +2 -0
- data/spec/{fixtures → scenarios}/br/tag-followed-by-newline.adoc +0 -0
- data/spec/{fixtures → scenarios}/br/tag-followed-by-newline.md +0 -0
- data/spec/{fixtures → scenarios}/br/tag-in-table-cell.adoc +0 -0
- data/spec/{fixtures → scenarios}/br/tag-in-table-cell.md +0 -0
- data/spec/{fixtures → scenarios}/br/tag-preceded-by-space.adoc +0 -0
- data/spec/{fixtures → scenarios}/br/tag-preceded-by-space.md +0 -0
- data/spec/{fixtures → scenarios}/br/tag.adoc +0 -0
- data/spec/{fixtures → scenarios}/br/tag.md +0 -0
- data/spec/{fixtures → scenarios}/br/trailing-double-space.adoc +0 -0
- data/spec/{fixtures → scenarios}/br/trailing-double-space.md +0 -0
- data/spec/scenarios/codeblock/contiguous-lines.adoc +3 -0
- data/spec/{fixtures → scenarios}/codeblock/contiguous-lines.md +0 -0
- data/spec/{fixtures → scenarios}/codeblock/fenced/with-command-prompt.adoc +0 -0
- data/spec/{fixtures → scenarios}/codeblock/fenced/with-command-prompt.md +0 -0
- data/spec/{fixtures → scenarios}/codeblock/fenced/with-language.adoc +0 -0
- data/spec/{fixtures → scenarios}/codeblock/fenced/with-language.md +0 -0
- data/spec/{fixtures → scenarios}/codeblock/fenced/with-non-contiguous-command-prompts.adoc +3 -2
- data/spec/{fixtures → scenarios}/codeblock/fenced/with-non-contiguous-command-prompts.md +0 -0
- data/spec/{fixtures → scenarios}/codeblock/fenced/without-language.adoc +0 -0
- data/spec/{fixtures → scenarios}/codeblock/fenced/without-language.md +0 -0
- data/spec/{fixtures → scenarios}/codeblock/non-contiguous-lines.adoc +2 -2
- data/spec/{fixtures → scenarios}/codeblock/non-contiguous-lines.md +0 -0
- data/spec/{fixtures → scenarios}/codeblock/with-command-prompt.adoc +0 -0
- data/spec/{fixtures → scenarios}/codeblock/with-command-prompt.md +0 -0
- data/spec/{fixtures → scenarios}/codeblock/with-non-contiguous-command-prompts.adoc +3 -2
- data/spec/{fixtures → scenarios}/codeblock/with-non-contiguous-command-prompts.md +0 -0
- data/spec/{fixtures → scenarios}/codespan/constrained.adoc +0 -0
- data/spec/{fixtures → scenarios}/codespan/constrained.md +0 -0
- data/spec/{fixtures → scenarios}/codespan/literal.adoc +0 -0
- data/spec/{fixtures → scenarios}/codespan/literal.md +0 -0
- data/spec/scenarios/dlist/compound.adoc +13 -0
- data/spec/scenarios/dlist/compound.md +7 -0
- data/spec/scenarios/dlist/nested-mixed.adoc +11 -0
- data/spec/scenarios/dlist/nested-mixed.md +11 -0
- data/spec/scenarios/dlist/nested.adoc +23 -0
- data/spec/scenarios/dlist/nested.md +23 -0
- data/spec/scenarios/dlist/simple.adoc +5 -0
- data/spec/scenarios/dlist/simple.md +5 -0
- data/spec/{fixtures → scenarios}/em/asterisks.adoc +0 -0
- data/spec/{fixtures → scenarios}/em/asterisks.md +0 -0
- data/spec/scenarios/em/constrained.adoc +1 -0
- data/spec/scenarios/em/constrained.md +1 -0
- data/spec/scenarios/em/strong.adoc +1 -0
- data/spec/scenarios/em/strong.md +1 -0
- data/spec/{fixtures → scenarios}/entity/numeric.adoc +0 -0
- data/spec/{fixtures → scenarios}/entity/numeric.md +0 -0
- data/spec/{fixtures → scenarios}/entity/reverse.adoc +0 -0
- data/spec/{fixtures → scenarios}/entity/reverse.md +0 -0
- data/spec/{fixtures → scenarios}/heading/block-title.adoc +1 -0
- data/spec/{fixtures → scenarios}/heading/block-title.md +3 -1
- data/spec/{fixtures → scenarios}/heading/not-block-title.adoc +0 -0
- data/spec/{fixtures → scenarios}/heading/not-block-title.md +0 -0
- data/spec/{fixtures → scenarios}/heading/out-of-sequence.adoc +0 -0
- data/spec/{fixtures → scenarios}/heading/out-of-sequence.md +0 -0
- data/spec/{fixtures → scenarios}/heading/outline.adoc +0 -0
- data/spec/{fixtures → scenarios}/heading/outline.md +0 -0
- data/spec/{fixtures → scenarios}/heading/with-anchor.adoc +0 -0
- data/spec/{fixtures → scenarios}/heading/with-anchor.md +0 -0
- data/spec/{fixtures → scenarios}/heading/with-formatting.adoc +0 -0
- data/spec/{fixtures → scenarios}/heading/with-formatting.md +0 -0
- data/spec/scenarios/hr/around-block.adoc +5 -0
- data/spec/scenarios/hr/around-block.md +5 -0
- data/spec/{fixtures → scenarios}/hr/between-blocks.adoc +0 -0
- data/spec/{fixtures → scenarios}/hr/between-blocks.md +0 -0
- data/spec/{fixtures → scenarios}/hr/dashes.adoc +0 -0
- data/spec/{fixtures → scenarios}/hr/dashes.md +0 -0
- data/spec/{fixtures → scenarios}/html_element/abbr.adoc +0 -0
- data/spec/{fixtures → scenarios}/html_element/abbr.md +0 -0
- data/spec/{fixtures → scenarios}/html_element/admonition.adoc +0 -0
- data/spec/{fixtures → scenarios}/html_element/admonition.md +0 -0
- data/spec/{fixtures → scenarios}/html_element/empty-p.adoc +0 -0
- data/spec/{fixtures → scenarios}/html_element/empty-p.md +0 -0
- data/spec/{fixtures → scenarios}/html_element/heading-with-class.adoc +0 -0
- data/spec/{fixtures → scenarios}/html_element/heading-with-class.md +0 -0
- data/spec/{fixtures → scenarios}/html_element/heading-with-id.adoc +0 -0
- data/spec/{fixtures → scenarios}/html_element/heading-with-id.md +0 -0
- data/spec/{fixtures → scenarios}/html_element/img-with-alt-and-width.adoc +0 -0
- data/spec/{fixtures → scenarios}/html_element/img-with-alt-and-width.md +0 -0
- data/spec/scenarios/html_element/img-with-percentage-width-css.adoc +1 -0
- data/spec/scenarios/html_element/img-with-percentage-width-css.md +1 -0
- data/spec/scenarios/html_element/img-with-percentage-width.adoc +1 -0
- data/spec/scenarios/html_element/img-with-percentage-width.md +1 -0
- data/spec/{fixtures/html_element/img-with-css-width.adoc → scenarios/html_element/img-with-width-css.adoc} +0 -0
- data/spec/{fixtures/html_element/img-with-css-width.md → scenarios/html_element/img-with-width-css.md} +0 -0
- data/spec/{fixtures → scenarios}/html_element/img-with-width.adoc +0 -0
- data/spec/{fixtures → scenarios}/html_element/img-with-width.md +0 -0
- data/spec/{fixtures → scenarios}/html_element/img.adoc +0 -0
- data/spec/{fixtures → scenarios}/html_element/img.md +0 -0
- data/spec/{fixtures → scenarios}/html_element/native.adoc +0 -0
- data/spec/{fixtures → scenarios}/html_element/native.md +0 -0
- data/spec/scenarios/html_element/pre-code-with-language.adoc +6 -0
- data/spec/scenarios/html_element/pre-code-with-language.md +4 -0
- data/spec/scenarios/html_element/strike.adoc +1 -0
- data/spec/scenarios/html_element/strike.md +1 -0
- data/spec/{fixtures → scenarios}/html_element/sub.adoc +0 -0
- data/spec/{fixtures → scenarios}/html_element/sub.md +0 -0
- data/spec/{fixtures → scenarios}/html_element/sup.adoc +0 -0
- data/spec/{fixtures → scenarios}/html_element/sup.md +0 -0
- data/spec/scenarios/img/block-in-list.adoc +5 -0
- data/spec/scenarios/img/block-in-list.md +5 -0
- data/spec/{fixtures → scenarios}/img/block-with-alt.adoc +0 -0
- data/spec/{fixtures → scenarios}/img/block-with-alt.md +0 -0
- data/spec/{fixtures → scenarios}/img/block-with-link-and-alt.adoc +0 -0
- data/spec/{fixtures → scenarios}/img/block-with-link-and-alt.md +0 -0
- data/spec/{fixtures → scenarios}/img/block-with-link.adoc +0 -0
- data/spec/{fixtures → scenarios}/img/block-with-link.md +0 -0
- data/spec/{fixtures → scenarios}/img/block.adoc +0 -0
- data/spec/{fixtures → scenarios}/img/block.md +0 -0
- data/spec/{fixtures → scenarios}/img/imagesdir.adoc +0 -0
- data/spec/{fixtures → scenarios}/img/imagesdir.md +0 -0
- data/spec/{fixtures → scenarios}/img/imagesdir.opts +0 -0
- data/spec/{fixtures → scenarios}/img/implicit-imagesdir.adoc +0 -0
- data/spec/{fixtures → scenarios}/img/implicit-imagesdir.md +0 -0
- data/spec/{fixtures → scenarios}/img/implicit-imagesdir.opts +0 -0
- data/spec/{fixtures → scenarios}/img/inline-with-alt.adoc +0 -0
- data/spec/{fixtures → scenarios}/img/inline-with-alt.md +0 -0
- data/spec/{fixtures → scenarios}/img/inline-with-link-and-alt.adoc +0 -0
- data/spec/{fixtures → scenarios}/img/inline-with-link-and-alt.md +0 -0
- data/spec/{fixtures → scenarios}/img/inline-with-link.adoc +0 -0
- data/spec/{fixtures → scenarios}/img/inline-with-link.md +0 -0
- data/spec/{fixtures → scenarios}/img/inline.adoc +0 -0
- data/spec/{fixtures → scenarios}/img/inline.md +0 -0
- data/spec/{fixtures → scenarios}/ol/compound-separated.adoc +5 -1
- data/spec/{fixtures/ol/compound.md → scenarios/ol/compound-separated.md} +8 -1
- data/spec/{fixtures → scenarios}/ol/compound.adoc +5 -1
- data/spec/{fixtures/ol/compound-separated.md → scenarios/ol/compound.md} +3 -6
- data/spec/scenarios/ol/formatted.adoc +3 -0
- data/spec/scenarios/ol/formatted.md +3 -0
- data/spec/{fixtures → scenarios}/ol/mixed-separated.adoc +0 -0
- data/spec/{fixtures → scenarios}/ol/mixed-separated.md +0 -0
- data/spec/{fixtures → scenarios}/ol/mixed.adoc +0 -0
- data/spec/{fixtures → scenarios}/ol/mixed.md +0 -0
- data/spec/scenarios/ol/nested-mixed.adoc +8 -0
- data/spec/scenarios/ol/nested-mixed.md +8 -0
- data/spec/{fixtures → scenarios}/ol/nested-separated.adoc +0 -0
- data/spec/{fixtures → scenarios}/ol/nested-separated.md +0 -0
- data/spec/{fixtures → scenarios}/ol/nested.adoc +0 -0
- data/spec/{fixtures → scenarios}/ol/nested.md +0 -0
- data/spec/{fixtures → scenarios}/ol/simple-separated.adoc +0 -0
- data/spec/{fixtures → scenarios}/ol/simple-separated.md +0 -0
- data/spec/{fixtures → scenarios}/ol/simple.adoc +0 -0
- data/spec/{fixtures → scenarios}/ol/simple.md +0 -0
- data/spec/{fixtures → scenarios}/p/admonition/emphasis.adoc +0 -0
- data/spec/{fixtures → scenarios}/p/admonition/emphasis.md +0 -0
- data/spec/{fixtures → scenarios}/p/admonition/in-list-item.adoc +0 -0
- data/spec/{fixtures → scenarios}/p/admonition/in-list-item.md +0 -0
- data/spec/{fixtures → scenarios}/p/admonition/plain.adoc +0 -0
- data/spec/{fixtures → scenarios}/p/admonition/plain.md +0 -0
- data/spec/{fixtures → scenarios}/p/admonition/strong-emphasis.adoc +0 -0
- data/spec/{fixtures → scenarios}/p/admonition/strong-emphasis.md +0 -0
- data/spec/{fixtures → scenarios}/p/multiple-lines.adoc +0 -0
- data/spec/{fixtures → scenarios}/p/multiple-lines.md +0 -0
- data/spec/{fixtures → scenarios}/p/sequential.adoc +0 -0
- data/spec/{fixtures → scenarios}/p/sequential.md +0 -0
- data/spec/{fixtures → scenarios}/p/single-line.adoc +0 -0
- data/spec/{fixtures → scenarios}/p/single-line.md +0 -0
- data/spec/{fixtures → scenarios}/root/body-only.adoc +0 -0
- data/spec/{fixtures → scenarios}/root/body-only.md +0 -0
- data/spec/{fixtures → scenarios}/root/book-doctype.adoc +0 -0
- data/spec/{fixtures → scenarios}/root/book-doctype.md +0 -0
- data/spec/{fixtures → scenarios}/root/header-and-body.adoc +0 -0
- data/spec/{fixtures → scenarios}/root/header-and-body.md +0 -0
- data/spec/{fixtures → scenarios}/root/header-only.adoc +0 -0
- data/spec/{fixtures → scenarios}/root/header-only.md +0 -0
- data/spec/{fixtures → scenarios}/smart_quote/apostrophe.adoc +0 -0
- data/spec/{fixtures → scenarios}/smart_quote/apostrophe.md +0 -0
- data/spec/{fixtures → scenarios}/smart_quote/double-quotes.adoc +0 -0
- data/spec/{fixtures → scenarios}/smart_quote/double-quotes.md +0 -0
- data/spec/{fixtures → scenarios}/smart_quote/single-quotes.adoc +0 -0
- data/spec/{fixtures → scenarios}/smart_quote/single-quotes.md +0 -0
- data/spec/scenarios/strong/constrained.adoc +1 -0
- data/spec/scenarios/strong/constrained.md +1 -0
- data/spec/scenarios/strong/menu.adoc +3 -0
- data/spec/scenarios/strong/menu.md +1 -0
- data/spec/{fixtures → scenarios}/strong/nested-emphasis.adoc +0 -0
- data/spec/{fixtures → scenarios}/strong/nested-emphasis.md +0 -0
- data/spec/{fixtures → scenarios}/table/alignment.adoc +0 -0
- data/spec/{fixtures → scenarios}/table/alignment.md +0 -0
- data/spec/scenarios/table/cell-with-image.adoc +9 -0
- data/spec/scenarios/table/cell-with-image.md +4 -0
- data/spec/{fixtures → scenarios}/table/cell-with-pipe.adoc +0 -0
- data/spec/{fixtures → scenarios}/table/cell-with-pipe.md +0 -0
- data/spec/{fixtures → scenarios}/table/single-column-with-header.adoc +0 -0
- data/spec/{fixtures → scenarios}/table/single-column-with-header.md +0 -0
- data/spec/{fixtures → scenarios}/table/single-column-without-header.adoc +0 -0
- data/spec/{fixtures → scenarios}/table/single-column-without-header.md +0 -0
- data/spec/{fixtures → scenarios}/table/with-header.adoc +0 -0
- data/spec/{fixtures → scenarios}/table/with-header.md +0 -0
- data/spec/{fixtures → scenarios}/table/without-header.adoc +0 -0
- data/spec/{fixtures → scenarios}/table/without-header.md +0 -0
- data/spec/{fixtures → scenarios}/text/caret.adoc +0 -0
- data/spec/{fixtures → scenarios}/text/caret.md +0 -0
- data/spec/{fixtures → scenarios}/text/lte.adoc +0 -0
- data/spec/{fixtures → scenarios}/text/lte.md +0 -0
- data/spec/{fixtures → scenarios}/text/plus-plus.adoc +0 -0
- data/spec/{fixtures → scenarios}/text/plus-plus.md +0 -0
- data/spec/{fixtures → scenarios}/text/typographic_sym/apostrophe.adoc +0 -0
- data/spec/{fixtures → scenarios}/text/typographic_sym/apostrophe.md +0 -0
- data/spec/{fixtures → scenarios}/text/typographic_sym/double-quotes.adoc +0 -0
- data/spec/{fixtures → scenarios}/text/typographic_sym/double-quotes.md +0 -0
- data/spec/{fixtures → scenarios}/text/typographic_sym/ellipsis.adoc +0 -0
- data/spec/{fixtures → scenarios}/text/typographic_sym/ellipsis.md +0 -0
- data/spec/{fixtures → scenarios}/text/typographic_sym/mdash.adoc +0 -0
- data/spec/{fixtures → scenarios}/text/typographic_sym/mdash.md +0 -0
- data/spec/{fixtures → scenarios}/text/typographic_sym/ndash.adoc +0 -0
- data/spec/{fixtures → scenarios}/text/typographic_sym/ndash.md +0 -0
- data/spec/{fixtures → scenarios}/text/typographic_sym/single-quotes.adoc +0 -0
- data/spec/{fixtures → scenarios}/text/typographic_sym/single-quotes.md +0 -0
- data/spec/scenarios/trailing_space.adoc +7 -0
- data/spec/scenarios/trailing_space.md +7 -0
- data/spec/{fixtures → scenarios}/typographic_sym/ellipsis.adoc +0 -0
- data/spec/{fixtures → scenarios}/typographic_sym/ellipsis.md +0 -0
- data/spec/{fixtures → scenarios}/typographic_sym/mdash.adoc +0 -0
- data/spec/{fixtures → scenarios}/typographic_sym/mdash.md +0 -0
- data/spec/{fixtures → scenarios}/typographic_sym/ndash.adoc +0 -0
- data/spec/{fixtures → scenarios}/typographic_sym/ndash.md +0 -0
- data/spec/scenarios/ul/blockquote.adoc +5 -0
- data/spec/scenarios/ul/blockquote.md +2 -0
- data/spec/scenarios/ul/compound-nested.adoc +21 -0
- data/spec/scenarios/ul/compound-nested.md +17 -0
- data/spec/{fixtures → scenarios}/ul/compound-separated.adoc +5 -1
- data/spec/{fixtures/ul/compound.md → scenarios/ul/compound-separated.md} +8 -1
- data/spec/{fixtures → scenarios}/ul/compound.adoc +5 -1
- data/spec/{fixtures/ul/compound-separated.md → scenarios/ul/compound.md} +3 -6
- data/spec/scenarios/ul/formatted.adoc +3 -0
- data/spec/scenarios/ul/formatted.md +3 -0
- data/spec/{fixtures → scenarios}/ul/nested-separated.adoc +0 -0
- data/spec/{fixtures → scenarios}/ul/nested-separated.md +0 -0
- data/spec/{fixtures → scenarios}/ul/nested.adoc +0 -0
- data/spec/{fixtures → scenarios}/ul/nested.md +0 -0
- data/spec/{fixtures → scenarios}/ul/simple-separated.adoc +0 -0
- data/spec/{fixtures → scenarios}/ul/simple-separated.md +0 -0
- data/spec/{fixtures → scenarios}/ul/simple.adoc +0 -0
- data/spec/{fixtures → scenarios}/ul/simple.md +0 -0
- data/spec/{fixtures → scenarios}/xml_comment/above-header.adoc +0 -0
- data/spec/{fixtures → scenarios}/xml_comment/above-header.md +0 -0
- data/spec/scenarios/xml_comment/at-start-of-line.adoc +9 -0
- data/spec/scenarios/xml_comment/at-start-of-line.md +4 -0
- data/spec/{fixtures → scenarios}/xml_comment/block.adoc +0 -0
- data/spec/{fixtures → scenarios}/xml_comment/block.md +0 -0
- data/spec/{fixtures → scenarios}/xml_comment/line-offset-by-space.adoc +0 -0
- data/spec/{fixtures → scenarios}/xml_comment/line-offset-by-space.md +0 -0
- data/spec/{fixtures → scenarios}/xml_comment/line.adoc +0 -0
- data/spec/{fixtures → scenarios}/xml_comment/line.md +0 -0
- data/spec/{fixtures → scenarios}/xml_comment/list-separator.adoc +1 -1
- data/spec/{fixtures → scenarios}/xml_comment/list-separator.md +0 -0
- data/spec/{fixtures → scenarios}/xml_comment/mixed.adoc +0 -0
- data/spec/{fixtures → scenarios}/xml_comment/mixed.md +0 -0
- data/spec/{fixtures → scenarios}/xml_comment/multiline-span.adoc +0 -0
- data/spec/{fixtures → scenarios}/xml_comment/multiline-span.md +0 -0
- data/spec/{fixtures → scenarios}/xml_comment/styled.adoc +0 -0
- data/spec/{fixtures → scenarios}/xml_comment/styled.md +0 -0
- metadata +574 -482
- data/spec/fixtures/a/url-matches-text.adoc +0 -1
- data/spec/fixtures/a/url-matches-text.md +0 -1
- data/spec/fixtures/codeblock/contiguous-lines.adoc +0 -5
- data/spec/fixtures/em/constrained.adoc +0 -1
- data/spec/fixtures/em/constrained.md +0 -1
- data/spec/fixtures/strong/constrained.adoc +0 -1
- data/spec/fixtures/strong/constrained.md +0 -1
data/spec/integration_spec.rb
CHANGED
@@ -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
|
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) {
|
16
|
+
let(:input) { IO.read input_filename, mode: 'r:UTF-8', newline: :universal }
|
19
17
|
let(:extra_options) { options }
|
20
|
-
let(:expected) {
|
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
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
@@ -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
|
File without changes
|
File without changes
|
@@ -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.
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|