xwiki-attic / application-confluence-migrator

Migrates content from Confluence to XWiki
GNU Lesser General Public License v2.1
3 stars 7 forks source link

Inline code blocks with coloring incorrectly imported #104

Open fknorn opened 1 year ago

fknorn commented 1 year ago

In Confluence

<td><code>0x<span style="color: rgb(255,102,0);">2</span>001</code></td>

rendering as

Screenshot 2023-09-27 at 09 04 33

Becomes in XWiki after migration:

|(((
(% style="color:#ff6600" %)2

{{code language="none"}}
0x001
{{/code}}
)))|

which renders as

<td><div><p><span style="color: rgb(255,102,0);">2</span></p><div class="box"><div class="code">0x001</div></div></div></td>

and looks like

Screenshot 2023-09-27 at 09 10 19

😟


Note that this comes from using "Monospace"-Formatting in Confluence. Why don't those get translated into inline "typewriter" style (aka ##typewriter##)? This would be a much closer match both in terms of semantics and formatting?