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

Hash (#) character inside a code block gets picked up by <<toc >> as a title

    XMLWordPrintable

Details

    Description

      I have this python snippet inside one of my markdown pages:

      # some comment
      
      ... Some code
      

      When I create a table of contents with the <<toc >> tag it shows the actual headings in my file but also shows the comment in my code snippet. This is really annoying as you end up with a table of contents that looks like this:

      • Heading
        • SubHeading
      • some comment

      Attachments

        Activity

          People

            Unassigned Unassigned
            a006617c-be04-44ad-a43d-e8f4be9daae5 ajonischkeit (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: