Github org-mode html 导出图片调整大小

Github org-mode html export image resizing

How to resize images in org-mode 描述使用 #:ATTR_HTML 调整图像大小。不过,这对 GitHub 的组织模式导出不起作用:添加

#:ATTR_HTML: :width 100px

适用于 emacs 的导出,但 GitHub seems to omit it.

有什么方法可以 GitHub 调整 org 导出的图像的大小吗?

作为其 rendering pipeline 的一部分,在将 Org 转换为 HTML 之后,

The HTML is sanitized, aggressively removing things that could harm you and your kin—such as script tags, inline-styles, and class or id attributes.

过去也曾在此处引用卫生规则,但此处引用 was removed in October, 2018。因此,不再清楚允许哪些标签和属性,但很可能在此过程中删除了生成的 width="100px" 属性。

也有可能是the Ruby library GitHub users to convert Org to HTML根本不支持ATTR_HTML

无论哪种情况,您最好的选择可能是使用该图像的真实 100 像素宽版本。