Sha256: 06dc4b97c61ad925f4a016713b9c9dacdc224ba8bd909b090c87b7bc10c61e31

Contents?: true

Size: 1.25 KB

Versions: 12

Compression:

Stored size: 1.25 KB

Contents

# 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>
    """

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
asciidoctor-1.5.8 features/pass_block.feature
asciidoctor-1.5.7.1 features/pass_block.feature
asciidoctor-1.5.7 features/pass_block.feature
asciidoctor-1.5.6.2 features/pass_block.feature
asciidoctor-1.5.6.1 features/pass_block.feature
asciidoctor-1.5.6 features/pass_block.feature
asciidoctor-1.5.5 features/pass_block.feature
asciidoctor-1.5.4 features/pass_block.feature
asciidoctor-1.5.3 features/pass_block.feature
asciidoctor-1.5.2 features/pass_block.feature
asciidoctor-1.5.1 features/pass_block.feature
asciidoctor-1.5.0 features/pass_block.feature