test/code.yml in BBRedCloth-0.8.8 vs test/code.yml in BBRedCloth-0.9.0.alpha1

- old
+ new

@@ -94,11 +94,14 @@ name: unfinished notextile tag in: |- <notextile> # *test* html: |- - # *test* + <p><notextile></p> + <ol> + <li><strong>test</strong></li> + </ol> valid_html: false --- name: unfinished script tag in: |- <script> @@ -138,13 +141,11 @@ html: |- <p>If you have a line or two of code or <span class="caps">HTML</span> to embed, use extended block code like so:</p> <pre><code>./foo.pl% &lt;p&gt;foo outputs an HTML paragraph&lt;/p&gt;</code> - <code>&lt;p&gt;block of code keeps going until a different block signature is encountered&lt;/p&gt;</code> - - </pre> + <code>&lt;p&gt;block of code keeps going until a different block signature is encountered&lt;/p&gt;</code></pre> <p>And then go back with a normal paragraph.</p> --- name: extended block code preserves leading whitespace after blank line in: |- bc.. class Foo @@ -165,13 +166,11 @@ end</code> <code> def baz 'baz' end - end</code> - - </pre> + end</code></pre> <p>That&#8217;s it!</p> --- name: block code containing code avoids nesting code tags in: |- bc. A one-liner: @ruby -ne '($h||={}).fetch($_){puts $h[$_]=$_}'@ @@ -225,5 +224,14 @@ valid_html: false --- name: code containing parentheses in: 'p. @some_method(some_params, some => test);@ Oh dear this fails' html: '<p><code>some_method(some_params, some =&gt; test);</code> Oh dear this fails</p>' +--- +name: code preserves initial square brackets +description: usually square brackets are used for the language (English, French, Spanish...), but that doesn't make sense for code and apparently is needed for some computer languages. +in: @[project]_dff.skjd@ +html: <p><code>[project]_dff.skjd</code></p> +--- +name: following also bracketed code in same line +in: "Some [@code@] and some [@more code@]." +html: "<p>Some <code>code</code> and some <code>more code</code>.</p>"