html - 在 VScode 的 markdown 文件中包含图片
问题描述
我必须在 vscode 中使用 markdown 编写文档。我有一些麻烦,包括我的文件中的图像。我想为我的图像添加标题。我尝试了thist post上的建议。因此,我创建了一个文件夹“_includes”,并添加了一个带有以下代码的文件 image.html:
<figure class="image">
<img src="{{include.url}}" alt="{{include.description}}">
<figcaption>{{include.description}}</figcaption>
在我的 .md 文件中,我试图使用包含图像
{% include image.html src="/pictures/myimage.svg" description="test" %}
问题是,vscode 似乎无法识别 {% include %} 命令。它只是将代码显示为纯文本。谁能推荐我解决这个问题?
亲切的问候
解决方案
推荐阅读
- regex - openscript中以下变量的正则表达式可以是什么?
- php - Yii2中如何处理Session?
- python - 在解析作为 python 中的 webhook 警报接收的 json 元素时出错?
- logging - 在 logback 中转义 HTML
- npm - 使用 nodejs-riscv64 riscv-dev 分支的 npm 错误 riscv64 目标
- flutter - 如何使用资产音频播放器停止颤动刷卡器中的循环?
- javascript - 向上或向下移动 HTML 表格单元格(不是行)
- flutter - ListView Flutter 上的搜索过滤器
- javascript - 连接到已经有参与者的 Twilio 视频室
- c - #包括
C 中的错误(在 Visual Studio 代码中)