Uploaded image for project: 'Confluence Cloud'
  1. Confluence Cloud
  2. CONFCLOUD-59800

Code Block macro: wrong formatting shown for ampersand

      ih3. Summary
      When using the '&' symbol in the Code Block macro, the wrong formatting is shown for ampersand.

      Environment

      • Confluence Cloud
      • Any browser

      Steps to Reproduce

      • Confluence page on edit mode.
      • Add the Code Block macro ({Code Block} or + icon > Other macros > Code Block).
      • Add code such as this example containing an ampersand on the Code Block macro box:
         <a href="https://test.test.br/?exp_partner=TESTTEST&utm_source=TESTTEST&utm_campaign=affiliates&utm_medium=link" target="_blank">sometext</a>
        
      • Publish the page.

      Expected Results

      • The code is shown correctly.

      Actual Results

      • The code appears as:
        <a href="https://test.br/?exp_partner=TEST&amp;utm_source=TEST&amp;utm_campaign=affiliates&amp;utm_medium=link" target="_blank">sometext</a>
        

      Workaround

      • This bug doesn't appear in the new editor. Customers impacted by this bug should use the new editor, which is currently being rolled out to all customers.

            [CONFCLOUD-59800] Code Block macro: wrong formatting shown for ampersand

            This is still a problem that we see. Is this issue resolved and the new editor rolled out? How to I know if my installation has the new editor?

            Rajesh Kazankodath added a comment - This is still a problem that we see. Is this issue resolved and the new editor rolled out? How to I know if my installation has the new editor?

            Hi mary.connor, this is a great question for our support team. They will be able to explain how you can opt-into the new editor.

            Best,

            Suny

            Sunny Xu (Inactive) added a comment - Hi mary.connor , this is a great question for our support team. They will be able to explain how you can opt-into the new editor. Best, Suny

            We have HUNDREDS of instances of this misbehaving macro across hundreds of old pages, which our customers now see.

            Will our existing pages on old templates be converted automatically for us during the rollout, or is no template conversion needed?

            If the latter, how can we speed up rollout of the new editor?

            Mary Connor added a comment - We have HUNDREDS of instances of this misbehaving macro across hundreds of old pages, which our customers now see. Will our existing pages on old templates be converted automatically for us during the rollout, or is no template conversion needed? If the latter, how can we speed up rollout of the new editor?

            Hi e1c6bf74382a, our support team can help you out with that process.

            Best,

            Sunny

            Sunny Xu (Inactive) added a comment - Hi e1c6bf74382a , our support team can help you out with that process. Best, Sunny

            How can we start to use the new editor?

            Tamas Juhasz added a comment - How can we start to use the new editor?

            Hi everyone,

            This is Sunny from the Confluence team. Thank you for raising this bug to our attention, and my team and I appreciate the details provided to help us reproduce the bug. After investigating further into this bug, this bug is only impacting the old editor, and we're actively rolling out the new editor where this bug doesn't exist in the Code Macro. If you are having issues with this bug, I encourage you to use the new editor as a solution.

            Thank you again for all of your feedback around this bug! I will be marking it closed for now.

            Sunny

            Sunny Xu (Inactive) added a comment - Hi everyone, This is Sunny from the Confluence team. Thank you for raising this bug to our attention, and my team and I appreciate the details provided to help us reproduce the bug. After investigating further into this bug, this bug is only impacting the old editor, and we're actively rolling out the new editor where this bug doesn't exist in the Code Macro. If you are having issues with this bug, I encourage you to use the new editor as a solution. Thank you again for all of your feedback around this bug! I will be marking it closed for now. Sunny

            I see the new code block implementation on the previewed editor. Please note that changing to it would be a huge impact on organizations like ours that use it regularly throughout our content.

            Rather than leave us high and dry, please either

            • (minimum) fix the bug
            • (better) develop a script that Support can run to convert our old code blocks to the new one

            Mary Connor added a comment - I see the new code block implementation on the previewed editor. Please note that changing to it would be a huge impact on organizations like ours that use it regularly throughout our content. Rather than leave us high and dry, please either (minimum) fix the bug (better) develop a script that Support can run to convert our old code blocks to the new one

            +1 for fixing please

            Tamas Juhasz added a comment - +1 for fixing please

            Josh Morton added a comment - - edited

            Another vote for fixing. This makes documenting product settings that are JSON driven or containing URLs impossible. 

            Josh Morton added a comment - - edited Another vote for fixing. This makes documenting product settings that are JSON driven or containing URLs impossible. 

            Please fix this. And thanks!

            James Casey added a comment - Please fix this. And thanks!

              mmadrid@atlassian.com Mark M
              tkrischer Thais Krischer (Inactive)
              Affected customers:
              57 This affects my team
              Watchers:
              58 Start watching this issue

                Created:
                Updated:
                Resolved: