R markdown图片字幕消失了

问题描述

我有一个带有HTML输出的Rmarkdown。

以下代码效果很好-它完美地并排放置了两个图像。但是,为什么下面的代码没有在图片本身下打印指定的字幕是有原因的?我完全遵循了公式-为什么括号[]中的文本不显示标题


    ![Caption for the picture.](cropped1.png){#id .class width=50% height=50%}![Caption for the picture.](cropped2.png){#id .class width=50% height=50%}

@H_502_9@

以下是文档配置:

output:
  html_document:
    theme: "flatly"
    toc: true
    fig_caption: yes
    toc_float:
      collapsed: false
      smooth_scroll: true
@H_502_9@
    


解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)