result=filter('<pre><code class="gnuplot">This is a test</code></pre>')
expect(result.to_html).toeq('<pre class="code highlight js-syntax-highlight plaintext" v-pre="true"><code>This is a test</code></pre>')
expect(result.to_html).toeq('<pre class="code highlight js-syntax-highlight plaintext" lang="plaintext" v-pre="true"><code>This is a test</code></pre>')
end
end
...
...
@@ -31,7 +31,7 @@ describe Banzai::Filter::SyntaxHighlightFilter, lib: true do
it"highlights as plaintext"do
result=filter('<pre><code class="ruby">This is a test</code></pre>')
expect(result.to_html).toeq('<pre class="code highlight" v-pre="true"><code>This is a test</code></pre>')
expect(result.to_html).toeq('<pre class="code highlight" lang="" v-pre="true"><code>This is a test</code></pre>')