diff options
| author | Dan Allen <dan.j.allen@gmail.com> | 2014-07-15 02:49:22 -0600 |
|---|---|---|
| committer | Dan Allen <dan.j.allen@gmail.com> | 2014-07-15 02:49:54 -0600 |
| commit | be3306ee60dd802c71b8f12e8f4d8b012584992b (patch) | |
| tree | 32150726829d966753681a0816d09775578ef296 /features/text_formatting.feature | |
| parent | 8a044adcc238a563b016225faf65ef29c19d41fb (diff) | |
add cucumber test for superscript and subscript
Diffstat (limited to 'features/text_formatting.feature')
| -rw-r--r-- | features/text_formatting.feature | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/features/text_formatting.feature b/features/text_formatting.feature new file mode 100644 index 00000000..625fe697 --- /dev/null +++ b/features/text_formatting.feature @@ -0,0 +1,27 @@ +# 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: Render 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> + """ |
