Lacks with transformation of Capella HTML descriptions

60 views Asked by At

Capella supports XHTML descriptions. When publishing documentation with Capella 5.1 and M2DOc 3.2.0, several of the constructs are not supported by the method fromHTMLBodyString

  • Indented bullet lists (lists within lists)
  • subscript, superscript, strikethrough

Exemple of typical formatting in Capella

Is that development planned in a future version?

Other question: when descriptions include images, is there any way to ensure the picture fits in the width of the page?

Thank you very much!

1

There are 1 answers

0
Yvan Lussaud On

The ul and ol elements are not working in some cases like the one you describe here. The is a bug opened for this:

https://github.com/ObeoNetwork/M2Doc/issues/447

The sub and sup tags are not supported. I opened the following issue:

https://github.com/ObeoNetwork/M2Doc/issues/448

The strike tag should work see test here. The s tag is also supported.

I don't know when this work will be planned.

To make sure images fits in the page, you will have to write a Java service. You will need to call the fit() service. You can have a look at this service from the Capella extensions for the general idea of the structure of the service.