"Fossies" - the Fresh Open Source Software Archive

Member "asciidoctor-2.0.10/features/text_formatting.feature" (1 Jun 2019, 1649 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: Text Formatting
    3   In order to apply formatting to the text
    4   As a writer
    5   I want to be able to markup inline text with formatting characters
    6 
    7 
    8   Scenario: Convert text that contains superscript and subscript characters
    9   Given the AsciiDoc source
   10     """
   11     _v_~rocket~ is the value
   12     ^3^He is the isotope
   13     log~4~x^n^ is the expression
   14     M^me^ White is the address
   15     the 10^th^ point has coordinate (x~10~, y~10~)
   16     """
   17   When it is converted to html
   18   Then the result should match the HTML source
   19     """
   20     <div class="paragraph">
   21     <p><em>v</em><sub>rocket</sub> is the value
   22     <sup>3</sup>He is the isotope
   23     log<sub>4</sub>x<sup>n</sup> is the expression
   24     M<sup>me</sup> White is the address
   25     the 10<sup>th</sup> point has coordinate (x<sub>10</sub>, y<sub>10</sub>)</p>
   26     </div>
   27     """
   28 
   29 
   30   Scenario: Convert text that has ex-inline literal formatting
   31   Given the AsciiDoc source
   32     """
   33     Use [x-]`{asciidoctor-version}` to print the version of Asciidoctor.
   34     """
   35   When it is converted to html
   36   Then the result should match the HTML source
   37     """
   38     <div class="paragraph">
   39     <p>Use <code>{asciidoctor-version}</code> to print the version of Asciidoctor.</p>
   40     </div>
   41     """
   42 
   43 
   44   Scenario: Convert text that has ex-inline monospaced formatting
   45   Given the AsciiDoc source
   46     """
   47     :encoding: UTF-8
   48 
   49     The document is assumed to be encoded as [x-]+{encoding}+.
   50     """
   51   When it is converted to html
   52   Then the result should match the HTML source
   53     """
   54     <div class="paragraph">
   55     <p>The document is assumed to be encoded as <code>UTF-8</code>.</p>
   56     </div>
   57     """