Skip to content

关于Rmd -> jekyll ->html 中间的问题 #3

@BruceZhaoR

Description

@BruceZhaoR

@scottming 你的邮件已经看到了, 我简单说明一下吧.

我不是直接用knit后的md来当做post里面的md的, 而是用knit后的html来当做md的. 你看我的关于ggplot的那两篇文章1就是这么干的, 不过我去掉了head, 里面的图片是64位编码的, 浏览器会自动解析. 关于图片编码你可以看看 RCul::base64 函数的examples.

R代码高亮问题我是copy了Rstudio的r_highligiht.html 里面js 直接添加到了layout/post.html的后面了.颜色设置请看我的那个css, 我也是为了这种细节折腾了很长时间, 甚至直接看了Rstudio的源码... 现在想想当时简直是丧心病狂... 😂

另外, 我还走通了一个rmd直接生成jekyll博客,并且包含htmlwidget. 这个当然要感谢益辉的servr包了,然后我实现js交互作用需要感谢brendanvasiliosz.实现的博客地址在这里: https://github.com/BZRLC/bzrlc.github.io.

PS: 链接都是干货啊, 唉,写这个issue也不容易. 我要继续干活去了...

Footnotes

  1. 如果是github打开的话,建议用rawgit 可以看到原始代码.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions