summaryrefslogtreecommitdiff
path: root/features/pass_block.feature
blob: 24b7212d8772299c00bd74ed3dfcb099d36982b6 (plain) (blame)
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 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>
    """