【问题标题】:Github org-mode html export image resizingGithub org-mode html 导出图片大小调整
【发布时间】:2019-07-22 09:21:13
【问题描述】:

How to resize images in org-mode 描述使用#:ATTR_HTML 调整图像大小。但是,这不适用于 GitHub 的 org-mode 导出:添加

#:ATTR_HTML: :width 100px

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

有没有办法让 GitHub 调整 org 导出的图像的大小?

【问题讨论】:

    标签: html github image-resizing org-mode


    【解决方案1】:

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

    对 HTML 进行清理,积极删除可能对您和您的家人造成伤害的内容,例如 script 标签、内联样式和 classid 属性。

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

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

    在任何一种情况下,您最好的选择可能是使用该图像的真实 100 像素宽版本。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2015-05-19
      • 2015-12-15
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多