Fossil: how to display tagged image files on wiki pages?

Here is the complete workflow:

Initialize repository and workspace

$ fossil new repo.fossil
$ mkdir workspace
$ cd workspace
$ fossil open ../repo.fossil

Add image file to repository

$ fossil add image.jpg
$ fossil commit -m "added image.jpg"

Start Fossil Server:

$ fossil server

Open the web interface in a browser:

BROWSERNAME 127.0.0.1:8080

Now I want to get the .jpg image displayed on the wiki page.

Things I tried:

[image.jpg]
<img src="image.jpg">

I also tried switching "Use HTML as a wiki markup language" in Admin-> Configuration

+5
source share
2 answers

see this page . You should use <img src='/doc/tip/image.jpg'/>, I suppose.

+7
source

I got it to work, though through a workaround.

, , "" " ui", , . URL- ( Chrome, , " URL- ". URL http://localhost:8081/raw/2c2e13a1f71295c3?m=image/jpeg

, :

<img src="http://localhost:8081/raw/2c2e13a1f71295c3?m=image/jpeg"/>
0

All Articles