ObeoNetwork / M2Doc

The M2Doc technology enables the generation of Office Open XML documents from models.
http://obeonetwork.github.io/M2Doc/
Eclipse Public License 2.0
38 stars 22 forks source link

Add support for following styles in fromHTMLBodyString() service. #451

Closed ylussaud closed 2 years ago

ylussaud commented 2 years ago

Add support for the following styles:

<h2 style="font-style: italic;">Italic&nbsp;Title</h2>

<p>Normal</p>

<h3 style="color: rgb(170, 170, 170); font-style: italic;">Subtitle</h3>

<p>Normal</p>

<p><span class="marker">Marker</span></p>

<p>Normal</p>

<p><big>Big</big></p>

<p>Normal</p>

<p><small>Small</small></p>

<p>Normal</p>

<p><tt>Typewriter</tt></p>

<p>Normal</p>

<p><code>Computer code</code></p>

<p>Normal</p>

<p><kbd>Keyboard phrase</kbd></p>

<p>Normal</p>

<p><samp>Sample text</samp></p>

<p>Normal</p>

<p><var>Variable</var></p>

<p>Normal</p>

<p><del>Deleted text</del></p>

<p>Normal</p>

<p><ins>Inserted Text</ins></p>

<p>Normal</p>

<p><cite>Cited work</cite></p>

<p>Normal</p>

<p><q>Inline quotation</q></p>

<p>Normal</p>

<p><span dir="rtl">language RTL</span></p>

<p>Normal</p>

<p><span dir="ltr">language LTR</span></p>

<ul>
    <li>liste puce 1</li>
    <li>liste puce 2
    <ol>
        <li>liste puce 2.1</li>
        <li>liste puce 2.3</li>
    </ol>
    </li>
    <li>liste puce 3</li>
</ul>

<p>Normal</p>

<p style="margin-left: 40px;">Augmented indentation</p>

<p>Normal</p>

<p>&nbsp;</p>

<p>&nbsp;</p>

<p>&nbsp;</p>