Bug Export HTML-Docs with pictures relative path

35 views
Skip to first unread message

H Muehleck

unread,
Jun 29, 2022, 3:17:38 AMJun 29
to StarUML
Hi StarUML,

I want to use picture in the Markdown documentation.
If I use an absolute path everything works great in StarUML and with the export.
But an absolute path like "![PictureAbsolute](/D:/example.jpg)" is poor, because
then the file structure must be always the same...

So I tried the relative path like "![PictureRelative](///pics/example.jpg)".
In StarUML Preview it works well but in the export the picture can´t be displayed.
I the failure is in the conversion to HTML
"<img alt="PictureRelative" src="///pics/example.jpg"/>" 
If i change it to:
<p><img alt="PictureRelative" src="pics/example.jpg"/>
it works

Also I have to copy the picture manually but that is ok



H Muehleck

unread,
Jun 29, 2022, 3:20:13 AMJun 29
to StarUML
StarUML V5.0.2
MS Windows 10

StarUML

unread,
Jun 29, 2022, 10:22:43 PMJun 29
to StarUML
Hi,

Markdown support is not intended to use local images, so we recommend embed images in the online.

Eventhough, Is this ("///pics/example.jpg") is a relative path? Did you tried relative paths starts with "./" or "../"?

Thanks,

2022년 6월 29일 수요일 오후 4시 20분 13초 UTC+9에 Helmut....@de.ebmpapst.com님이 작성:
Message has been deleted
Message has been deleted

helmut -

unread,
Jun 30, 2022, 8:10:12 AMJun 30
to StarUML
Documentation.mdj

helmut -

unread,
Jun 30, 2022, 8:11:46 AMJun 30
to StarUML

Hi,

 

what do you mean with not to use local images?
How could I embed online images in StarUML?

 

The relative path ![PictureRelative](///example.jpg) is working in StarrUML but not in the export.

I tried ![PictureRelative](./example.jpg) and ![PictureRelative](../example.jpg) but both are not working in StarUML.

 

See here in StarUML only absolute and  /// is working

 

That is the exported HTML, only absolute and the ./ is working
Here I have to copy the picture into the directory \html-docs\contents before


 

The HTML Code

 

 

So I think the conversion from markdown /// to HTML shoud be ./ what Do you think?

 

 

Best regards

helmut -

unread,
Jun 30, 2022, 8:13:57 AMJun 30
to StarUML
Screenshot_StarUML.jpg

StarUML

unread,
Jul 1, 2022, 12:49:09 AMJul 1
to StarUML
This issue seems about Markdown image path conversion, I hope below link helpful for you:
Thanks,

2022년 6월 30일 목요일 오후 9시 13분 57초 UTC+9에 Helmut....@de.ebmpapst.com님이 작성:

Minkyu Lee

unread,
Jul 1, 2022, 12:50:48 AMJul 1
to StarUML
Additionally, I could show images with relative path with "./" and "../" in macOS. But Windows has different way to represent local path.

2022년 7월 1일 금요일 오후 1시 49분 9초 UTC+9에 StarUML님이 작성:

helmut -

unread,
Jul 5, 2022, 1:52:33 AMJul 5
to StarUML

Hello Minkyu,

thanx for your answer. In my office I have to use MS Windows 10 ☹

I´ve tried some stuff from StackoverFlow but it doesn´t work.

 

I tried it also with the editor Atom

Here just works it with ../ but here also works the export to HTML (see screenshot)

Any idea? or do relative path just don´t work in StarUML in Windows?Screenshot_Atom_Windows.png

Reply all
Reply to author
Forward
0 new messages