How do I tell Jekyll/Maruku which post has the Markdown syntax error?
Asked Answered
B

1

7

How do I tell Jekyll/Maruku to tell me which file has my Mardown syntax error?

The build warning only tells me so much:

$ jekyll --safe

Configuration from /homne/me/_config.yml
Building site: /homne/me -> /homne/me/_site

 ___________________________________________________________________________
| Maruku tells you:
+---------------------------------------------------------------------------
| Could not find ref_id = "md_entityhellip" for md_link([md_entity("hellip")],"md_entityhellip")
| Available refs are ["png", "2", "3", "4", "5", "6"]
+---------------------------------------------------------------------------
!/home/eoin/.rvm/gems/ruby-1.9.3-p385/gems/maruku-0.6.1/lib/maruku/errors_management.rb:49:in `maruku_error'
!/home/eoin/.rvm/gems/ruby-1.9.3-p385/gems/maruku-0.6.1/lib/maruku/output/to_html.rb:716:in `to_html_link'
!/home/eoin/.rvm/gems/ruby-1.9.3-p385/gems/maruku-0.6.1/lib/maruku/output/to_html.rb:970:in `block in array_to_html'
!/home/eoin/.rvm/gems/ruby-1.9.3-p385/gems/maruku-0.6.1/lib/maruku/output/to_html.rb:961:in `each'
!/home/eoin/.rvm/gems/ruby-1.9.3-p385/gems/maruku-0.6.1/lib/maruku/output/to_html.rb:961:in `array_to_html'
\___________________________________________________________________________
Not creating a link for ref_id = "md_entityhellip".Successfully generated site: /homne/me -> /homne/me/_site
Bartels answered 16/2, 2013 at 12:41 Comment(7)
What version of jekyll are you running?Sofiasofie
Jekyll version 0.12.0Bartels
I've had similar problems. They made the error reporting better in the newer version. I would try to use the newest commit of Jekyll and see if it gives you better error messages.Sofiasofie
Nice, sounds like the answer, thanks.Bartels
for future users, updating to Jeykll 1.2.0 solved the issue for me.Dicentra
running 1.4.3 and happeningBeaudette
@DirtyHenry running 1.4.2 still happeningGriggs
I
0

The next version of Jekyll will have better error reporting with MaRuKu and include the path to the file that caused the error.

The current master branch on GitHub should be stable enough that you could use it for testing purposes. Feedback would be welcome if you do decide to test it out. Thanks!

Impartial answered 29/8, 2013 at 16:39 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.