Giter VIP home page Giter VIP logo

Comments (3)

zhuochun avatar zhuochun commented on May 26, 2024

Your screenshot is broken. Can you upload it again?

When you insert a local image, the path of image will be changed relative to the project path. So that when you serve the page on the web, the image path is correct. However, this will break image preview. It is a compromised decision.

from md-writer.

IdanAdar avatar IdanAdar commented on May 26, 2024

Ah that's funny, I did not mean to upload a photo to this conversation; it was the code used to display the image in the markdown: ![<alt>](./storyboard.png).

So this is expected behavior...
Can this be toggled, in order to get a better 'feel' of the document that is being written locally?

from md-writer.

zhuochun avatar zhuochun commented on May 26, 2024

Ah. The <alt> is a bug and is fixed in commit 2842d26.

Resolving the image path is difficult, if you have your posts in _posts/ and images in images/.

  1. in Markdown Preview, the image is relative to the path of the post. The path would be ../images/image.png.
  2. in Website, the image is relative to the directory of your site. The path would be /images/image.png.

from md-writer.

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.