visoft / goodbye-syntax-highlighter

Wordpress plugin that converts SyntaxHighlighter code example syntax into syntax that works out-of-the-box with highlight.js
4 stars 2 forks source link

Problem with `\` #2

Open vanabel opened 11 years ago

vanabel commented 11 years ago

It seems that the following code will not be correctly transformed:

<pre lang="tex">
$\log e^x=x$
</pre>

it should be something like:

<pre class="prettyprint perl">
  <code class="language-tex">
    <span class="variable">$\</span>
    <span class="keyword">log</span> e^
    <span class="keyword">x</span>=
    <span class="keyword">x</span>$
</code>
</pre>

but it turns out to be

<pre>
<code class="language-tex bash">
<span class="variable">$log</span> e^x=x$
</code>
</pre>

I hope you could have a look!

visoft commented 11 years ago

This should be fixed in the master branch. I'm prepped to deploy v0.1.3 assuming this fixes the issue for you.