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

Inline code inside a link in Markdown is broken (BB-7612)

    XMLWordPrintable

Details

    Description

      Using the following Markdown snippet:

      #!markdown
      [`$q`](http://docs.angularjs.org/api/ng.$q)
      

      Python Markdown generates the following HTML:

      #!html
      <p><a href="http://docs.angularjs.org/api/ng.$q"><code>$q</code></a></p>
      

      However, the Markdown preview in the issue tracker produces the following broken markup:

      #!html
      <a href="<a href=" http:="" docs.angularjs.org="" api="" ng.$q"="" rel="nofollow">http://docs.angularjs.org/api/ng.$q</a>"><code>$q</code>
      

      Attachments

        Activity

          People

            Unassigned Unassigned
            9468febe3b5e whitelynx
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: