Maruku issues

55 views
Skip to first unread message

Tobie Langel

unread,
Sep 2, 2009, 7:06:44 PM9/2/09
to PDoc
Bumped into the following issue with Maruku: lines starting with an
inline HTML element are mistakenly treated as HMTL blocks.

For example:

Maruku.new("<span>foo</span> foo").to_html

Throws:

___________________________________________________________________________
| Maruku tells you:

+---------------------------------------------------------------------------
| Could you please format this better?
| I see that " foo" is left after the raw HTML.
| At line 2
| raw_html |<span>foo</span> foo|

+---------------------------------------------------------------------------
!/usr/local/lib/ruby/gems/1.8/gems/maruku-0.6.0/lib/maruku/
errors_management.rb:49:in
`maruku_error'
!/usr/local/lib/ruby/gems/1.8/gems/maruku-0.6.0/lib/maruku/input/
parse_block.rb:251:in
`read_raw_html'
!/usr/local/lib/ruby/gems/1.8/gems/maruku-0.6.0/lib/maruku/input/
parse_block.rb:88:in
`parse_blocks'
!/usr/local/lib/ruby/gems/1.8/gems/maruku-0.6.0/lib/maruku/input/
parse_block.rb:41:in
`parse_text_as_markdown'
!/usr/local/lib/ruby/gems/1.8/gems/maruku-0.6.0/lib/maruku/input/
parse_doc.rb:57:in
`parse_doc'

\___________________________________________________________________________


While:

Maruku.new("foo <span>foo</span> foo").to_html

renders:

<p>foo <span>foo</span> foo</p>

Windows compatible suggestions welcomed.

--

Tobie

Andrew Dupont

unread,
Sep 2, 2009, 8:11:04 PM9/2/09
to pd...@googlegroups.com
So I did a little more research into BlueCloth on Windows [1]. Turns
out there's a binary version available at

http://deveiate.org/code/bluecloth-2.0.5-x86-mingw32.gem

that works just fine. Download, open a command prompt, navigate to
where you downloaded it, then do

gem install bluecloth-2.0.5-x86-mingw32.gem

and it should work fine.

I tested this on an XP installation inside VMWare Fushion. Can someone
with Windows verify this?

Cheers,
Andrew

[1] http://www.ruby-forum.com/topic/191559

Tobie Langel

unread,
Sep 2, 2009, 8:12:34 PM9/2/09
to pd...@googlegroups.com
Andrew, thank you o much. That's great news!

T.J. Crowder

unread,
Sep 3, 2009, 12:10:03 PM9/3/09
to PDoc
Hi Andrew,

I tried that, and the install went perfectly, but testing it:

require 'bluecloth'
BlueCloth.new('*testing*').to_html

...fails on a dependency of some kind:
* * * *
C:/Ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in
`gem_original_require': no such file to load -- bluecloth_ext
(LoadError)
from C:/Ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:
31:in `require'
from C:/Ruby/lib/ruby/gems/1.8/gems/bluecloth-2.0.5-x86-
mingw32/lib/bluecloth.rb:156
from C:/Ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:
36:in `gem_original_require'
from C:/Ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:
36:in `require'
from C:/Ruby/temp.rb:1
* * * *

Apologies if the answer is obvious. I'm not a Ruby person.
--
T.J. Crowder
tj / crowder software / com
www.crowdersoftware.com

T.J. Crowder

unread,
Sep 7, 2009, 8:51:48 AM9/7/09
to PDoc
FYI, I've piled onto this thread:

http://groups.google.com/group/comp.lang.ruby/browse_thread/thread/caef12dc05f886d6

...which seems to have some attention from the maintainers. I'll
report back anything I find.

-- T.J.

Andrew Dupont

unread,
Sep 7, 2009, 3:05:07 PM9/7/09
to pd...@googlegroups.com
I also e-mailed Michael Granger a couple days back. Hopefully one of
us will get through.

Cheers,
Andrew
Reply all
Reply to author
Forward
0 new messages