Skip to content

markdown file export to pdf  #1367

Closed
Closed

Description

@zjxi

When I try to make md file export to pdf, but the images couldn't show up.

  • Mark Text: v0.15.0
  • Operating System: Windows 10

Activity

  1. Jocs commented on Sep 24, 2019

    @Jocs
    Member

    Can you show me you markdown file?

  2. added
    🐤 blocked/need info
    on Sep 24, 2019
  3. infeeeee commented on Sep 24, 2019

    @infeeeee

    I think I can reproduce this error, it only happens if there is a space in the image filename or in the path of the image. In the editor it shows up correctly, on pdf export it shows the markdown source of the image: ![](path to image with space.jpg)

    Also v0.15.0, win 10

  4. zjxi commented on Sep 24, 2019

    @zjxi
    Author

    I think I can reproduce this error, it only happens if there is a space in the image filename or in the path of the image. In the editor it shows up correctly, on pdf export it shows the markdown source of the image: ![](path to image with space.jpg)

    Also v0.15.0, win 10

    The images that I use are all dragged into the Mark Text editor and the paths are right without any spaces.

  5. zjxi commented on Sep 24, 2019

    @zjxi
    Author

    Can you show me you markdown file?

    demo.zip

  6. infeeeee commented on Sep 24, 2019

    @infeeeee

    There is a space in your path... Saved Pictures. With Ctrl+Alt+S you can see your markdown source
    image

  7. added
    🐝 resolved/fixed but not released
    and removed
    🐤 blocked/need info
    on Sep 24, 2019
  8. fxha commented on Sep 24, 2019

    @fxha
    Contributor

    Seems to be an issue with spaces in paths in v0.15.0 which is already fixed on develop.

  9. zjxi commented on Sep 25, 2019

    @zjxi
    Author

    There is a space in your path... Saved Pictures. With Ctrl+Alt+S you can see your markdown source
    image

    Sorry, I did not see where the space is.

  10. DutchPete commented on Sep 28, 2019

    @DutchPete

    @infeeeee : thanks for pointing that out.
    @ElecRex : @infeeeee is right about the space in the path. The way to handle that is to add %20 (not 20%) to the space in the gap. So, in your case the red part should read
    C:\Users\lenovo\Pictures\Saved%20Pictures\400716227.jpg

    For other users: this works on Linux too.

  11. zachmonkey commented on Apr 26, 2020

    @zachmonkey

    The export of images is still broken for both PDF and HTML on v0.16.1 for Win 10. HTML export doesn't even include the src in the tag, just an ALT, ex:
    <img alt="ApocClubTestCartoonish.jpg">

  12. fxha commented on May 17, 2020

    @fxha
    Contributor

    Please see #1997 for more details. v0.16.1 has another problem with images on Windows.

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

    🐝 resolved/fixed but not released

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions