diff options
Diffstat (limited to 'features/pass_block.feature')
| -rw-r--r-- | features/pass_block.feature | 66 |
1 files changed, 66 insertions, 0 deletions
diff --git a/features/pass_block.feature b/features/pass_block.feature new file mode 100644 index 00000000..24b7212d --- /dev/null +++ b/features/pass_block.feature @@ -0,0 +1,66 @@ +# language: en +Feature: Open Blocks + In order to pass content through unprocessed + As a writer + I want to be able to mark passthrough content using a pass block + + + Scenario: Render a pass block without performing substitutions by default to HTML + Given the AsciiDoc source + """ + :name: value + + ++++ + <p>{name}</p> + + image:tiger.png[] + ++++ + """ + When it is rendered using the html backend + Then the output should match the HTML source + """ + <p>{name}</p> + + image:tiger.png[] + """ + + + Scenario: Render a pass block without performing substitutions by default to DocBook + Given the AsciiDoc source + """ + :name: value + + ++++ + <simpara>{name}</simpara> + + image:tiger.png[] + ++++ + """ + When it is rendered using the docbook backend + Then the output should match the XML source + """ + <simpara>{name}</simpara> + + image:tiger.png[] + """ + + + Scenario: Render a pass block performing explicit substitutions to HTML + Given the AsciiDoc source + """ + :name: value + + [subs="attributes,macros"] + ++++ + <p>{name}</p> + + image:tiger.png[] + ++++ + """ + When it is rendered using the html backend + Then the output should match the HTML source + """ + <p>value</p> + + <span class="image"><img src="tiger.png" alt="tiger"></span> + """ |
