@@ -165,7 +165,16 @@ optToOutputSettings opts = do
165165 "" -> tp <.> format
166166 _ -> tp
167167 Just . UTF8.toString <$>
168− ((fst <$> fetchItem tp') `catchError`
168+ ((do surl <- stSourceURL <$> getCommonState
169+ -- we don't want to look for templates remotely
170+ -- unless the full URL is specified:
171+ modifyCommonState $ \st -> st{
172+ stSourceURL = Nothing }
173+ (bs, _) <- fetchItem tp'
174+ modifyCommonState $ \st -> st{
175+ stSourceURL = surl }
176+ return bs)
177+ `catchError`
169178 (\e ->
170179 case e of
171180 PandocResourceNotFound _ ->