diff options
| author | Dan Allen <dan.j.allen@gmail.com> | 2014-07-13 21:44:41 -0600 |
|---|---|---|
| committer | Dan Allen <dan.j.allen@gmail.com> | 2014-07-27 16:59:02 -0600 |
| commit | 37c3f1a0ecd4140ce2796cbe33f37c9f7398322c (patch) | |
| tree | aadeb193688d83f853544d9fb7f6de9d248b6c2f /features | |
| parent | 2dd757f561611383daf6a1006c68b2885448427d (diff) | |
resolves #718 and #714 swap + and ` formatting chars
- change + to be constrained passthough (no monospaced formatting)
* recognize role "x-" to reenable legacy behavior
- change ++ to be unconstrained passthrough (no monospaced formatting, same as $$)
* recognize role "x-" to reenable legacy behavior
- add role to unconstrained passthroughs (except for pass:[] macro)
- change ` to be constrained monospace (no passthrough behavior)
- change `` to be unconstrained monospace (no passthrough behavior)
- use compat-mode document attribute to reenable legacy behavior
- update compat file for compatibility with AsciiDoc Python
- update tests for both compatibility modes
- fix marked text in compat file
Diffstat (limited to 'features')
| -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> + """ |
