Uploaded image for project: 'Confluence'
  1. Confluence
  2. CONFLUENCE-120

Add support for inline code styling

    XMLWordPrintable

Details

    • Improvement
    • Resolution: Fixed
    • Minor
    • 9.18.0
    • 9.16.1
    • Syntax - Confluence
    • None
    • Confluence 7.19.2 to XWiki 14.10 on Debian
    • Unit
    • Unknown

    Description

      When migrating a page with inline code formatting from Confluence 7.19.2 to XWiki 14.10 via  migrator tool, the formatting is gone.

      In Confluence this is achieved by applying “Preformatted code” in Confluence WYSIWYG-Editor, resulting in <code>my text</code>  elements:

      <p>Lorem ipsum dolor sit amet, <code>consetetur</code> sadipscing elitr, <code>clita kasd gubergren, no sea takimata sanctus</code> est Lorem ipsum dolor sit amet.</p>

      Additional info:

      The applied style to this in Confluence factory settings is font-only:

      font-family: SFMono-Medium,SF Mono,Segoe UI Mono,Roboto Mono,Ubuntu Mono,Menlo,Courier,monospace; 

      We use the <code>-tag to apply our own CSS to it, in our case:

      code {
        border-radius: 5px;
        color: #000;
        padding: .275em;
        border-radius: 5px;
        font-size: .9em;
        margin  : 0 0.2em 0 0.2em;
        top: -1px;
      } 

      On XWiki side this results in:

      <p>Lorem ipsum dolor sit amet, consetetur sadipscing elitr, clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet.</p> 

      I provided a Confluence package with examples in text, list, and table.

      PS: I just discovered CONFLUENCE-56 which is basically the same issue but without provided Confluence package to reproduce. I'm sorry for basically repeating the issue.

      Thank you!

      Attachments

        Issue Links

          Activity

            People

              tmortagne Thomas Mortagne
              johlton Fab Fuerste
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: