Including liquid tags in knitr output

13 views
Skip to first unread message

Joe

unread,
Jun 12, 2015, 10:29:06 AM6/12/15
to kn...@googlegroups.com
Hello,

Right now, render_jekyll() produces the following output for figures:

![alt text](/figures/fig.png)

I'd like the path to the figure to be:

![alt text]({{site.baseurl}}/figures/fig.png)

I can't quite figure out which hook I can use, if any, to inject the liquid tags into the path to the figure.

-Joe

Yihui Xie

unread,
Jun 12, 2015, 11:11:01 PM6/12/15
to Joe, knitr
I guess knitr::opts_knit$set(base.url = '{{site.baseurl}}/') should work.

Regards,
Yihui
--
Yihui Xie <xiey...@gmail.com>
Web: http://yihui.name
> --
> You received this message because you are subscribed to the Google Groups
> "knitr" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to knitr+un...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages