How do I display local image in markdown?

后端 未结 18 1887
孤独总比滥情好
孤独总比滥情好 2020-12-12 14:00

Does anyone know how to display a local image in markdown? I don\'t want to setup a webserver for that.

I try the following in markdown, but it doesn\'t work:

18条回答
  •  Happy的楠姐
    2020-12-12 14:35

    Edited:

    Working for me ( for local image )

    ![system schema](doc/systemDiagram.jpg)
    
     tree
     ├── doc
         └── jobsSystemSchema.jpg
     ├── README.md
    

    markdown file README.md is at the same level as doc directory.

    In your case ,your markdown file should be at the same level as the directory files.

    Working for me (absolute url with raw path)

    ![system schema](https://server/group/jobs/raw/master/doc/systemDiagram.jpg)
    

    NOT working for me (url with blob path)

    ![system schema](https://server/group/jobs/blob/master/doc/systemDiagram.jpg)
    

提交回复
热议问题