image - 在 Markdown 中包含图像时如何转义文件名中的空格?

标签 image jupyter-notebook escaping markdown

在 Jupyter notebook 中工作,我可以像这样直接在 markdown 中包含图像:

![description](filename.bmp)

如果文件名包含空格,这似乎不起作用:

![description](file name with spaces.bmp)

有没有办法在直接 Markdown 中转义文件名中的空格?以下变体不起作用:

![description]('file name with spaces.bmp')
![description]("file name with spaces.bmp")
![description](file\ name\ with\ spaces.bmp)
![description]('file\ name\ with\ spaces.bmp')
![description]("file\ name\ with\ spaces.bmp")
![description](file_name_with_spaces.bmp)
![description]((file name with spaces.bmp))
![description]({file name with spaces.bmp})

顺便说一句,如果重要的话,我正在使用 Debian 10。

最佳答案

Use %20 for spaces ,例如:

![description](file%20name%20with%20spaces.bmp)

关于image - 在 Markdown 中包含图像时如何转义文件名中的空格?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/62828966/

相关文章:

c - 2048x2032 原始图像数据大小?

python - Jupyter 笔记本中的 TensorFlow 变量重用错误

html - 如何使用 Nokogiri::XML::Builder 将非转义符号添加到 HTML

html - 可能已经转义的 html 转义字符串的优雅方式

JavaFX 图像未在舞台上显示

image - 如何在python flask服务器中保存base64图像

python - 同时检查多个分类列的值

linux - 刚刚将 Ubuntu 更新到 22.04,现在我无法打开 Jupyter Notebook

powershell - Windows 使用 powershell 安排任务创建问题

html - 如何显示带有两个不同大小/颜色边框的超链接图像?