git.iko.soy/typeable/pandoc
on master help sign in
Fixed absolute URI detection in EPUB writer. Closes #1672.
commita4d28cdd6d212646f63da316f8ca8ee102de727b authorJohn MacFarlane <jgm@berkeley.edu> dateWed 8 Oct 2014, 14:54 (12 years ago) parentd60707e
1 file changed+2−2
src/Text/Pandoc/Writers/EPUB.hs+2−2
src/Text/Pandoc/Writers/EPUB.hs+2−2
@@ -816,8 +816,8 @@ transformInline :: WriterOptions
816816 -> IO Inline
817817transformInline opts mediaRef (Image lab (src,tit)) = do
818818 let oldsrc = case (unEscapeString src, writerSourceURL opts) of
819− (s, Just u) | not (isURI s) -> u </> s
820− (s, _) -> s
819+ (s, Just u) | not (isURI src) -> u </> s
820+ (s, _) -> s
821821 newsrc <- modifyMediaRef mediaRef oldsrc
822822 return $ Image lab (newsrc, tit)
823823transformInline opts _ (x@(Math _ _))