Embedding images inside a GitHub wiki (gollum) repository?

前端 未结 15 942
时光取名叫无心
时光取名叫无心 2021-01-30 00:43

The Github wikis are backed by a separate git repository then the main project repository.

This post by the Github team makes it sound like you should be able to link to

15条回答
  •  無奈伤痛
    2021-01-30 01:05

    The comment from @Drew Noakes to the original question did it for me:

    The syntax for the image I wanted to be displayed:

    [[/images/imageName.png]]
    

    This image was only displayed when renaming:

    wikiPage.md --> wikiPage.wiki
    

    The following folder structure was used in the wiki repository:

    repository.wiki
       |--wikiPage.wiki
       |--images
            |--imageName.png       
    

    BUT:

    The syntax in .wiki differs from .md files.

提交回复
热议问题