[kramdown-users] Coderay Syntax Highlighting fails on Heroku

Thomas Leitner t_leitner at gmx.at
Mon Jan 7 15:52:35 UTC 2013


On 2013-01-07 17:47 +0530 Sandeep Laxman wrote:
> 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)
> );
> ~~~
>
> <SNIP />
>
> Any ideas what is going wrong here? Any suggestions on how I can fix
> this?

You probably need to install the coderay gem since kramdown depends on
it for syntax highlighting! This is the only thing I can think of why
kramdown wouldn't do the syntax highlighting in the production
environment.

Best regards,
  Thomas


More information about the kramdown-users mailing list