diff options
Diffstat (limited to 'features/text_formatting.feature')
| -rw-r--r-- | features/text_formatting.feature | 30 |
1 files changed, 29 insertions, 1 deletions
diff --git a/features/text_formatting.feature b/features/text_formatting.feature index 625fe697..4517c6e8 100644 --- a/features/text_formatting.feature +++ b/features/text_formatting.feature @@ -5,7 +5,7 @@ Feature: Text Formatting I want to be able to markup inline text with formatting characters - Scenario: Render text that contains superscript and subscript characters + Scenario: Convert text that contains superscript and subscript characters Given the AsciiDoc source """ _v_~rocket~ is the value @@ -25,3 +25,31 @@ Feature: Text Formatting 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> + """ |
