Giter VIP home page Giter VIP logo

Comments (4)

jgm avatar jgm commented on June 8, 2024 1

I see you're on Windows. It's possible that the problem involves / as a path separator? Does the image appear if you use \ instead of / in the image path?

from pandoc.

jgm avatar jgm commented on June 8, 2024

This should work! I just did a small test and it worked fine.
You'll have to provide a complete test case we can run to duplicate the issue. (Not your whole book -- just pare things down to the minimum necessary to reproduce it, and give us all the files necessary.)

from pandoc.

Darthagnon avatar Darthagnon commented on June 8, 2024

Aha, that's it. When I use backslashes for image paths, it works. Thank you!

Any chance slash translation could be added as a feature? The Markdown editors I use, MarkdownPad 2 and Notepad++ with NppMarkdownPanel, and previewers 1218 Seer and QuickLook display images regardless of back/forward slash; guess that's why I didn't spot this as the solution earlier.

from pandoc.

Darthagnon avatar Darthagnon commented on June 8, 2024

I just realised, 1218 Seer uses Pandoc v1.16.0.2 under the hood, and when previewing Markdown files with linked images on Windows, it does the opposite to the issue I'm observing here with Pandoc v3.1.13: images linked with backslashes \ are not displayed, but images linked with forward slashes / are displayed.

Although, on closer examination, I'm not sure if it's using Pandoc to render Markdown, as the plugin folder only contains scripts for DOCX and EPUB:

{
	"name": "docx2md",
	"suffix": ["docx","odt"], 
	"exec": "pandoc.exe -s \"*SEER_INPUT_PATH*\" -t markdown -o \"*SEER_OUTPUT_PATH*.md\""
}
{
	"name": "epub2text",
	"suffix": ["epub"],
	"exec": "pandoc.exe -s \"*SEER_INPUT_PATH*\" -t plain -o \"*SEER_OUTPUT_PATH*.txt\""
}

from pandoc.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.