×

Loading...
Ad by
  • 有本地收入,贷款金额不足的,复杂情况需要贷款方案的朋友,请致电咨询Scotiabank -- Nick Zhang 6478812600,点链接看详情。

@Boston

Topic

  • 工作学习 / 学科技术 / 最近才接触markdown language, 文档很干净利索,用pandoc 转成docx/html 也很方便。问个问题哈,本地c 盘有个图片,内嵌到 .md 中, 如果把 .md 上载到sharepoint 上,也要另外把图片上载才能正常显示,有什么方法不用单独上载图片?
    • 试试把图片编码后内嵌,看能否显示,如果能上传 md,那简单的还是直接上传图片,以后调整也方便 +1
      • thanks
        • 如果你只是放个结果在 sharepoint,可考虑 md 转为 html,然后把图片编码内嵌,这样可以只传一个文件。不过要是图片过大或是有权限做文件上传,就别折腾了,直接上传图片就行了 +2
    • 内嵌到 .md 中是什么意思?base64 encoded?
      • markdown 的格式
        ![tesla png](tesla.png)
        • 不明白 sharepoint, 但是显然 tesla.png 的内容没有包含在 .md文件之内。还是需要分开上传吧。
          • 原来你也是一个程序员,html好像支持,不知道markdown支持embedded
            • 有不是程序员的男国移吗? +1
          • 是的,我想能不能像word 文档一样图片可以包含在 .docx 中, 看起来还是分开吧
        • like this? like this?

          ![Test](data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAQMAAADCCAMAAAB6zFdcAAAAeFBMVEX///8BAQHw8PD39/cgICDCwsL8/PzGxsb09PTq6uri4uIrKyuioqLV1dXQ0NDt7e1HR0dtbW3c3NympqZQUFB9fX1XV1dycnKtra2IiIgQEBCQkJA7OzsaGhpMTEx4eHhjY2MoKCgzMzOZmZm6urpmZmY/Pz+FhYX800mDAAADBUlEQVR4nO3bWVfqMBSG4YZSplKEMgooo/r//+FpmSycCpLEtReb97ljebP7malJGgQAAAAAAAAAAAAAAAAAAAAAAAAAAABPLnmRrkBWGI2N2UhXIakyq5pMW7oOQRuz97wZpOtDBKYvXYqUyJzUpWsRUojAhNLFyGgVIhhIFyMkLmTwpMNBuxCBqUhXIyKsFiIYSlcjo19sBg3pamTMGQ2Kk8JSuhghha6wrk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MDAiIHdpZHRoPSIyMDAiID4KPHJlY3QgeD0iMCIgeT0iMCIgd2lkdGg9Ijk2MCIgaGVpZ2h0PSI5NjAiIHJ4PSIyMDAiIHN0eWxlPSJmaWxsOiAjRTc1MzA0Ii8+Cgo8cGF0aCBkPSJNIDU1Ny43LCA3MTkuMyBBIDE1NSwgMTU1LCAwLCAxLCAxLCAyNzYuNSwgNjI3LjkgQSAxNTUsIDE1NSwgMCwgMSwgMSwgMjc2LjUsIDMzMi4xIEEgMTU1LCAxNTUsIDAsIDEsIDEsIDU1Ny43LCAyNDAuNyBBIDE1NSwgMTU1LCAwLCAxLCAxLCA3MzEuNiwgNDgwIEEgMTU1LCAxNTUsIDAsIDEsIDEsIDU1Ny43LCA3MTkuMyAiIHN0eWxlPSJmaWxsOiNmZmZmZmY7c3Ryb2tlOiNFNzUzMDQ7c3Ryb2tlLXdpZHRoOjE7ZmlsbC1ydWxlOm5vbnplcm87IiAKCQkJc3Ryb2tlLWxpbmVjYXA9InJvdW5kIi8+Cgk8Y2lyY2xlIGN4PSI1MzMiIGN5PSIzOTUuMiIgcj0iMzAiIGZpbGw9IiNFNzUzMDQiIHN0eWxlPSJzdHJva2U6I0U3NTMwNCIvPgoJPGNpcmNsZSBjeD0iMzg3LjMiIGN5PSI0NDIuNSIgcj0iMzAiIGZpbGw9IiNFNzUzMDQiIHN0eWxlPSJzdHJva2U6I0U3NTMwNCIvPgoJCgk8cGF0aCBkPSJNIDYwNy4yLCA1MDcgQSAxMjUsIDEyNSwgMCwgMCwgMSwgMzkzLCA1NzYuNiIKCQkJc3Ryb2tlLWxpbmVjYXA9InJvdW5kIgoJCQlzdHlsZT0iZmlsbDpub25lO3N0cm9rZTojRTc1MzA0O3N0cm9rZS13aWR0aDoxMTtmaWxsLXJ1bGU6bm9uemVybzsiCgkJCS8+Cjwvc3ZnPg==)

          • you are the man. it displayed the apple logo image.
            • 另一个呢?
              • oh, I see, rolia logo. thanks again. I made the base64 conversion for some pictures and embed it, works like a charm.
                • 👍 你要不说老大怎会知道我力挺 rolia logo 😅
                  一般来说只有小图片,简单 logo, svg 什么的才适合内嵌
    • google 收索一下,有些技术文档都是在github 上用 .md 写的。 应用场景很广,
    • 在线工具转换成data storage
      • I used the notepad++ plugins mime tool to convert picture to base64 encoding, embed it in the .md, displayed the picture properly on web.
Ad by
  • 有本地收入,贷款金额不足的,复杂情况需要贷款方案的朋友,请致电咨询Scotiabank -- Nick Zhang 6478812600,点链接看详情。