diff options
| author | Dan Allen <dan.j.allen@gmail.com> | 2013-10-28 00:41:29 -0600 |
|---|---|---|
| committer | Dan Allen <dan.j.allen@gmail.com> | 2013-10-28 00:51:07 -0600 |
| commit | fb55648e30596042151237add31fa0d90213b697 (patch) | |
| tree | 188d7aaa997a583dfeb3766b71aa273d69612e15 /features/pass_block.feature | |
| parent | 7d0f2cc321c3dcdd3fbcb53b02bde4fe1a0eea9c (diff) | |
resolves #737 disable subs on pass block by default
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> + """ |
