Sha256: 0e6186f725c203b70a673256ec7443b414b93f5274a63112530427d3365e4872

Contents?: true

Size: 1.88 KB

Versions: 12

Compression:

Stored size: 1.88 KB

Contents

# language: en
Feature: Open Blocks
  In order to group content in a generic container
  As a writer
  I want to be able to wrap content in an open block


  Scenario: Render an open block that contains a paragraph to HTML
  Given the AsciiDoc source
    """
    --
    A paragraph in an open block.
    --
    """
  When it is converted to html
  Then the result should match the HTML source
    """
    <div class="openblock">
    <div class="content">
    <div class="paragraph">
    <p>A paragraph in an open block.</p>
    </div>
    </div>
    </div>
    """


  Scenario: Render an open block that contains a paragraph to DocBook
  Given the AsciiDoc source
    """
    --
    A paragraph in an open block.
    --
    """
  When it is converted to docbook
  Then the result should match the XML source
    """
    <simpara>A paragraph in an open block.</simpara>
    """


  Scenario: Render an open block that contains a paragraph to HTML (alt)
  Given the AsciiDoc source
    """
    --
    A paragraph in an open block.
    --
    """
  When it is converted to html
  Then the result should match the HTML structure
    """
    .openblock
      .content
        .paragraph
          p A paragraph in an open block.
    """


  Scenario: Render an open block that contains a paragraph to DocBook (alt)
  Given the AsciiDoc source
    """
    --
    A paragraph in an open block.
    --
    """
  When it is converted to docbook
  Then the result should match the XML structure
    """
    simpara A paragraph in an open block.
    """


  Scenario: Render an open block that contains a list to HTML
  Given the AsciiDoc source
    """
    --
    * one
    * two
    * three
    --
    """
  When it is converted to html
  Then the result should match the HTML structure
    """
    .openblock
      .content
        .ulist
          ul
            li: p one
            li: p two
            li: p three
    """

Version data entries

12 entries across 12 versions & 1 rubygems

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