Sha256: 56561674c97d9c5908e766ddf7f738fb8e3e895c62e0ba137c2fff225357494f

Contents?: true

Size: 1.59 KB

Versions: 3

Compression:

Stored size: 1.59 KB

Contents

# language: en
Feature: Text Formatting
  In order to apply formatting to the text
  As a writer
  I want to be able to markup inline text with formatting characters


  Scenario: Convert text that contains superscript and subscript characters
  Given the AsciiDoc source
    """
    _v_~rocket~ is the value
    ^3^He is the isotope
    log~4~x^n^ is the expression
    M^me^ White is the address
    the 10^th^ point has coordinate (x~10~, y~10~)
    """
  When it is converted to html
  Then the result should match the HTML source
    """
    <div class="paragraph">
    <p><em>v</em><sub>rocket</sub> is the value
    <sup>3</sup>He is the isotope
    log<sub>4</sub>x<sup>n</sup> is the expression
    M<sup>me</sup> White is the address
    the 10<sup>th</sup> point has coordinate (x<sub>10</sub>, y<sub>10</sub>)</p>
    </div>
    """


  Scenario: Convert text that has ex-inline literal formatting
  Given the AsciiDoc source
    """
    Use [x-]`{asciidoctor-version}` to print the version of Asciidoctor.
    """
  When it is converted to html
  Then the result should match the HTML source
    """
    <div class="paragraph">
    <p>Use <code>{asciidoctor-version}</code> to print the version of Asciidoctor.</p>
    </div>
    """


  Scenario: Convert text that has ex-inline monospaced formatting
  Given the AsciiDoc source
    """
    The document is assumed to be encoded as [x-]+{encoding}+.
    """
  When it is converted to html
  Then the result should match the HTML source
    """
    <div class="paragraph">
    <p>The document is assumed to be encoded as <code>UTF-8</code>.</p>
    </div>
    """

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
asciidoctor-1.5.2 features/text_formatting.feature
asciidoctor-1.5.1 features/text_formatting.feature
asciidoctor-1.5.0 features/text_formatting.feature