"Fossies" - the Fresh Open Source Software Archive

Member "asciidoctor-2.0.10/features/pass_block.feature" (1 Jun 2019, 1282 Bytes) of package /linux/www/asciidoctor-2.0.10.tar.gz:


As a special service "Fossies" has tried to format the requested text file into HTML format (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file.

    1 # language: en
    2 Feature: Open Blocks
    3   In order to pass content through unprocessed
    4   As a writer
    5   I want to be able to mark passthrough content using a pass block
    6 
    7 
    8   Scenario: Render a pass block without performing substitutions by default to HTML
    9   Given the AsciiDoc source
   10     """
   11     :name: value
   12 
   13     ++++
   14     <p>{name}</p>
   15 
   16     image:tiger.png[]
   17     ++++
   18     """
   19   When it is converted to html
   20   Then the result should match the HTML source
   21     """
   22     <p>{name}</p>
   23 
   24     image:tiger.png[]
   25     """
   26 
   27 
   28   Scenario: Render a pass block without performing substitutions by default to DocBook
   29   Given the AsciiDoc source
   30     """
   31     :name: value
   32 
   33     ++++
   34     <simpara>{name}</simpara>
   35 
   36     image:tiger.png[]
   37     ++++
   38     """
   39   When it is converted to docbook
   40   Then the result should match the XML source
   41     """
   42     <simpara>{name}</simpara>
   43 
   44     image:tiger.png[]
   45     """
   46 
   47 
   48   Scenario: Render a pass block performing explicit substitutions to HTML
   49   Given the AsciiDoc source
   50     """
   51     :name: value
   52 
   53     [subs="attributes,macros"]
   54     ++++
   55     <p>{name}</p>
   56 
   57     image:tiger.png[]
   58     ++++
   59     """
   60   When it is converted to html
   61   Then the result should match the HTML source
   62     """
   63     <p>value</p>
   64 
   65     <span class="image"><img src="tiger.png" alt="tiger"></span>
   66     """