Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Compatibility with pandoc 1.16.0.1 #2

Open
pikapikapo opened this issue Apr 14, 2016 · 0 comments
Open

Compatibility with pandoc 1.16.0.1 #2

pikapikapo opened this issue Apr 14, 2016 · 0 comments

Comments

@pikapikapo
Copy link

Hello,

It seems that the current version is not compatible with the latests pandoc versions.

Doing this minor tweak fixed it for me (from jgm/pandoc-types@545a57e) :

--- a/src/Text/Pandoc/R.hs
+++ b/src/Text/Pandoc/R.hs
@@ -54,7 +54,7 @@ readImgFiles attrs = case lookup "files" attrs of
    Nothing -> [defFile]

 insertImage :: FilePath -> Inline
-insertImage file = Image [] (file,"")
+insertImage file = Image nullAttr [] (file, "")

 --plot the R graph
 --the files created will be the one specified in the R code with commands such as:

Regards,
Jérôme

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant