conflr icon indicating copy to clipboard operation
conflr copied to clipboard

Error rendering macro 'code'

Open datapixie opened this issue 2 years ago • 1 comments

I'm having trouble with code chunks not being rendered (regardless of the code_folding setting). The code chunks never show up, and in some cases I see the error

Error rendering macro 'code': Invalid value specified for parameter 'com.atlassian.confluence.ext.code.render.InvalidValueException'

For example the following Rmd :

## R Markdown

```{r cars}
summary(cars)

plot(pressure)
'''

is rendered on Confluence as

Screen Shot 2022-03-03 at 3 35 17 PM

Not sure if this matters, but I'm not on Confluence cloud, I'm on my company's internal confluence site. Is it possible my code macro is out of date or something?

datapixie avatar Mar 03 '22 23:03 datapixie

Not sure if this matters, but I'm not on Confluence cloud, I'm on my company's internal confluence site. Is it possible my code macro is out of date or something?

conflr specifies the parameter language and collapse, and there's a chance that some version of Confluence doesn't accept language parameter (collapse is not specified unless code_folding is set "hide", so it should not matter here), but I have no idea... FWIW, I use the on-premise version of Confluence without errors.

https://github.com/line/conflr/blob/3bd5533d4da044c89c5b58af7095d8f517461341/R/translate.R#L153-L164

yutannihilation avatar Mar 05 '22 03:03 yutannihilation