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

Erroneous handling of "cd" in markdown bash syntax highlighting

    XMLWordPrintable

Details

    Description

      In markdown containing bash code, "cd" is highlighted such that it looks like a comment. In the example below, I would expect "cd" to appear the same as "mkdir".

      #!bash
      # This is a comment
      mkdir ~/repo
      cd ~/repo
      

      FWIW the resulting HTML span element corresponding to "cd" has the class "nb" (I haven't been able to work out which language feature this corresponds to, comments appear to have the class "c1").

      Attachments

        Activity

          People

            Unassigned Unassigned
            13abbe63b6a0 mchenstridge
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: