Skip to content

Why did the exported file figure disappear? #1997

Closed

Description

@hwyywh

Description

  • Can you reproduce the issue?

Steps to reproduce

I inserted an image into the document and it disappeared when I exported the PDF file

Activity

  1. fxha commented on Mar 24, 2020

    @fxha
    Contributor

    Thank you for reporting the issue. We noticed that this may be a duplicate of #1367. You could download the latest release candidate from Github releases - otherwise replacing all path spaces with %20 should work too. Please try out, whether you can reproduce this issue on the latest release candidate or with an image without path spaces.

  2. added
    🐤 blocked/need info
    on Mar 24, 2020
  3. JeffreySE commented on Apr 8, 2020

    @JeffreySE

    The issue still exists, in a fresh installation, images are not exported in the exported file(PDF & HTML), no spaces in the image file path, see the attached video for more details.

    OS: Win 10
    MarkText Version: v0.16.1

    demo

  4. lilinxin75 commented on Apr 11, 2020

    @lilinxin75

    yes, I checked the issue still exists, latest installation, no spaces in the image file path or document name.
    PdfExtport

    OS: Win 10
    MarkText Version: v0.16.1

  5. xingdaos commented on Apr 15, 2020

    @xingdaos

    Thank you for reporting the issue. We noticed that this may be a duplicate of #1367. You could download the latest release candidate from Github releases - otherwise replacing all path spaces with %20 should work too. Please try out, whether you can reproduce this issue on the latest release candidate or with an image without path spaces.

    @fxha no spaces in the image file path or document name, I meet the problem too

  6. acicovic commented on Apr 29, 2020

    @acicovic

    I can also reproduce the issue in 0.16.1 (Windows 10 x64 1909) in a path without spaces.

    Let me know if you need more info.

    Thanks!

  7. acicovic commented on Apr 29, 2020

    @acicovic

    I exported this in HTML and have the same issue. I noticed that the img tag has not src attribute. This is the HTML I'm getting:

    <img data-align="center" alt="www.google.com-20200427210637.jpg" title="">

    So this is not just a PDF issue. It seems more like the src attribute is not generated.

  8. fxha commented on May 17, 2020

    @fxha
    Contributor

    Thanks for all your feedback! There is an issue with our HTML sanitizer that removes all image paths on Windows. I'll open an upstream issue and hope we can solve the issue quickly.

    E.g:

    • UNIX: /home/felix/abc.png -> ok
    • C:\Users\Felix\Pictures\abc.png -> removed
    • file:///C:\Users\Felix\Pictures\abc.png -> removed
    • file:///C:/Users/Felix/Pictures/abc.png -> removed
    • Pictures\abc.png and Pictures/abc.png -> ok (not used by Mark Text)

    Edit: ref. cure53/DOMPurify#436

  9. added
    🪲 pri/major
    🐹 platform/windows
    🐛 bug
    🐟 blocked/upstream
    and removed
    🐤 blocked/need info
    on May 17, 2020
  10. lewisl commented on May 30, 2020

    @lewisl

    Same thing on Mac. v0.16.1

  11. added
    🐝 resolved/fixed but not released
    and removed
    🐟 blocked/upstream
    on Jun 3, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    🪲 pri/major🐹 platform/windows🐝 resolved/fixed but not released🐛 bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions