schacon / showoff

moved to puppetlabs/showoff!
2.41k stars 13 forks source link

Prettyprinting HTML breaks showoff #24

Open wbzyl opened 14 years ago

wbzyl commented 14 years ago

Running showoff serve with the following slide added to example/one/slidesA.md (from the github source of the showoff gem):

!SLIDE

## HTML

    @@@html
    <img src="/images/xxx.png">

produces the following error:

Magick::ImageMagickError: unable to open file 
  `one/images/xxx.png' @   png.c/ReadPNGImage/2889

--Włodek Bzyl

ericskiff commented 14 years ago

I'm hitting this in my presentation as well. It appears update_image_paths is looking for "<img src" whether or not it's in a code block, and failing when it can't find the image that tag is talking about. It'd be great if it didn't look for that tag in code blocks, but it should probably fail gracefully either way.

For the moment, using an extra space between img and src is a hacky workaround for my presentation <img src="...