Uploaded image for project: 'Bitbucket Cloud'
  1. Bitbucket Cloud
  2. BCLOUD-8384

Code button in text editor doesn't force a newline after code blocks (BB-9540)

    XMLWordPrintable

Details

    Description

      Write one paragraph, include some text that includes code. Write another paragraph, include some text that includes code. Select the code in the first paragraph, press the code button. Enter the language. Select the code in the secondparagraph, press the code button. Enter the language.

      Write some text that includes code. Select the text in the sentence, press the code button.

      #!python
      
      Enter the language.
      ``` Do these in 2 seperate paragraphs. 
      
      Write some text that includes code. Select the text in the sentence, press the code button. 
      

      #!python

      Enter the language

      Unable to find source-code formatter for language: .. Available languages are: actionscript, ada, applescript, bash, c, c#, c++, cpp, css, erlang, go, groovy, haskell, html, java, javascript, js, json, lua, none, nyan, objc, perl, php, python, r, rainbow, ruby, scala, sh, sql, swift, visualbasic, xml, yaml
      And this is what you get. The is triggered by |`|`|` Text not entered on new line.
      

      Attachments

        Activity

          People

            Unassigned Unassigned
            legacy-bitbucket-user Legacy Bitbucket Cloud User (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: