forked from asciidoctor/asciidoctor
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpass_block.feature
66 lines (51 loc) · 1.25 KB
/
pass_block.feature
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
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 converted to html
Then the result 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 converted to docbook
Then the result 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 converted to html
Then the result should match the HTML source
"""
<p>value</p>
<span class="image"><img src="tiger.png" alt="tiger"></span>
"""