[kramdown-users] Coderay Syntax Highlighting fails on Heroku

Sandeep Laxman sandeep.laxman at gmail.com
Mon Jan 7 12:17:09 UTC 2013


Hi Guys,

I am using kramdown for my application to convert kramdown syntax (that
occasionally contains code) to html. Everything works fine with the
exception of the syntax highlighter in production.

My *input* in kramdown is the following:

~~~ sql
CREATE TABLE CUSTOMERS(
       ID   INT              NOT NULL,
       NAME VARCHAR (20)     NOT NULL,
       AGE  INT              NOT NULL,
       ADDRESS  CHAR (25) ,
       SALARY   DECIMAL (18, 2)
);
~~~

On my *development environment* the syntax highlighter gets applied
correctly and i get the following output (which is correct):

<div><div class="CodeRay">

<div class="code"><pre><span class="line-numbers"><a
href="#n1<http://localhost:3000/books/23#n1>"
name="n1">1</a></span><span style="color:#B06;font-weight:bold">CREATE
</span> <span style="color:#339;font-weight:bold">TABLE</span> CUSTOMERS(

<span class="line-numbers"><a href="#n2 <http://localhost:3000/books/23#n2>"
name="n2">2</a></span> ID <span style="color:#0a5;font-weight:bold">INT
</span> <span style="color:#080;font-weight:bold">NOT</span> <span style="
color:#069">NULL</span>,

<span class="line-numbers"><a href="#n3 <http://localhost:3000/books/23#n3>"
name="n3">3</a></span> NAME <span style="color:#0a5;font-weight:bold">
VARCHAR</span> (<span style="color:#00D">20</span>) <span style="
color:#080;font-weight:bold">NOT</span> <span style="color:#069">NULL</span>
,

<span class="line-numbers"><a href="#n4 <http://localhost:3000/books/23#n4>"
name="n4">4</a></span> AGE <span style="color:#0a5;font-weight:bold">INT
</span> <span style="color:#080;font-weight:bold">NOT</span> <span style="
color:#069">NULL</span>,

<span class="line-numbers"><a href="#n5 <http://localhost:3000/books/23#n5>"
name="n5">5</a></span> ADDRESS <span style="color:#0a5;font-weight:bold">
CHAR</span> (<span style="color:#00D">25</span>) ,

<span class="line-numbers"><a href="#n6 <http://localhost:3000/books/23#n6>"
name="n6">6</a></span> SALARY <span style="color:#0a5;font-weight:bold">
DECIMAL</span> (<span style="color:#00D">18</span>, <span style="color:#00D
">2</span>)

<span class="line-numbers"><a href="#n7 <http://localhost:3000/books/23#n7>"
name="n7">7</a></span>);

</pre></div>

</div>

</div>

However, on my *production environment* (currently using Heroku) the output
for the same is as follows (no syntax highlighting):

<pre><code class="language-sql">CREATE TABLE CUSTOMERS(

ID INT NOT NULL,

NAME VARCHAR (20) NOT NULL,

AGE INT NOT NULL UNIQUE,

ADDRESS CHAR (25) ,

SALARY DECIMAL (18, 2) DEFAULT 5000.00,

PRIMARY KEY (ID)

);

</code></pre>


Any ideas what is going wrong here? Any suggestions on how I can fix this?

Thanks!

-Sandeep
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://rubyforge.org/pipermail/kramdown-users/attachments/20130107/ac1900fe/attachment-0001.html>


More information about the kramdown-users mailing list