Closed abbourne closed 11 years ago
I tried with this:
System.out.println("Hello");
# Java
```java
System.out.println("Hello");
And it works fine, could you giva an example of markup that doesn't work?
I played around and found the problem. gimli fails when there are trailing spaces after the language token. The attached file fails (It has trailing blanks) Remove the trailing blanks, and it runs fine
Thanks for your help and quick reply to my email.
On Sun, Dec 2, 2012 at 11:07 AM, Fredrik Wallgren notifications@github.comwrote:
I tried with this: Java
System.out.println("Hello");
Java
System.out.println("Hello");
And it works fine, could you giva an example of markup that doesn't work?
— Reply to this email directly or view it on GitHubhttps://github.com/walle/gimli/issues/33#issuecomment-10931345.
Still the same problem in version 0.5.9. Why was this closed?
I've installed gimli 0.4.1 with coderay 1.0.8 and the syntax highlighting in markdown files is not working for me.
using the back tick notation
in my markdown file, I always get the following error:
/Users/billb/.rvm/gems/ruby-1.9.3-p327@octopress/gems/coderay-1.0.8/lib/coderay/helpers/plugin.rb:220:in'
validate_id': Invalid id given: java (ArgumentError) from /Users/billb/.rvm/gems/ruby-1.9.3-p327@octopress/gems/coderay-1.0.8/lib/coderay/helpers/plugin.rb:50:in
[]' from /Users/billb/.rvm/gems/ruby-1.9.3-p327@octopress/gems/coderay-1.0.8/lib/coderay/encoder.rb:83:inencode' from /Users/billb/.rvm/gems/ruby-1.9.3-p327@octopress/gems/coderay-1.0.8/lib/coderay.rb:198:in
encode' from /Users/billb/.rvm/gems/ruby-1.9.3-p327@octopress/gems/coderay-1.0.8/lib/coderay/tokens_proxy.rb:23:inencode' from /Users/billb/.rvm/gems/ruby-1.9.3-p327@octopress/gems/coderay-1.0.8/lib/coderay/tokens_proxy.rb:32:in
method_missing' from /Users/billb/.rvm/gems/ruby-1.9.3-p327@octopress/gems/gimli-0.4.1/lib/gimli/markup/code_block.rb:21:inhighlighted' from /Users/billb/.rvm/gems/ruby-1.9.3-p327@octopress/gems/gimli-0.4.1/lib/gimli/markup/code.rb:33:in
block in process' from /Users/billb/.rvm/gems/ruby-1.9.3-p327@octopress/gems/gimli-0.4.1/lib/gimli/markup/code.rb:32:ineach' from /Users/billb/.rvm/gems/ruby-1.9.3-p327@octopress/gems/gimli-0.4.1/lib/gimli/markup/code.rb:32:in
process' from /Users/billb/.rvm/gems/ruby-1.9.3-p327@octopress/gems/gimli-0.4.1/lib/gimli/markup/renderer.rb:58:inpost_process_data' from /Users/billb/.rvm/gems/ruby-1.9.3-p327@octopress/gems/gimli-0.4.1/lib/gimli/markup/renderer.rb:30:in
render' from /Users/billb/.rvm/gems/ruby-1.9.3-p327@octopress/gems/gimli-0.4.1/lib/gimli/converter.rb:27:inblock in convert!' from /Users/billb/.rvm/gems/ruby-1.9.3-p327@octopress/gems/gimli-0.4.1/lib/gimli/converter.rb:25:in
each' from /Users/billb/.rvm/gems/ruby-1.9.3-p327@octopress/gems/gimli-0.4.1/lib/gimli/converter.rb:25:inconvert!' from /Users/billb/.rvm/gems/ruby-1.9.3-p327@octopress/gems/gimli-0.4.1/lib/gimli.rb:29:in
process!' from /Users/billb/.rvm/gems/ruby-1.9.3-p327@octopress/gems/gimli-0.4.1/bin/gimli:23:in<top (required)>' from /Users/billb/.rvm/gems/ruby-1.9.3-p327@octopress/bin/gimli:19:in
load' from /Users/billb/.rvm/gems/ruby-1.9.3-p327@octopress/bin/gimli:19:in<main>' from /Users/billb/.rvm/gems/ruby-1.9.3-p327@octopress/bin/ruby_noexec_wrapper:14:in
eval' from /Users/billb/.rvm/gems/ruby-1.9.3-p327@octopress/bin/ruby_noexec_wrapper:14:in `