Uploaded image for project: 'Bitbucket Data Center'
  1. Bitbucket Data Center
  2. BSERV-10941

Special formatting characters should be ignored in automatically converted URLs

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Medium Medium
    • None
    • None
    • Usability
    • None

      Problem

      Special formatting characters should be ignored in URLs. Here’s what happens when I paste the below link:
      https://example.com/projects/DAA/repos/spapackages/browse/libs/pycoreautomation_ext/pycoreautomation_ext/_init_.py#269

      It removes the double underscores, marks “init” in bold, and breaks the link:
      https://example.com/projects/DAA/repos/spapackages/browse/libs/pycoreautomation_ext/pycoreautomation_ext/init.py#269

      e.g.

      Workarounds

      1. Use markdown in the editor to construct your link, e.g. if your link contains a set of characters that care interpreted as Markdown formatting, then constructing your link as follows will workaround that issue:
        [init script](http://example.com/foo/__init__.py) 
      2. If you want to use the URL as the link text, you will also need to escape the formatting characters 
        [http://example.com/foo/\_\_init__.py](http://example.com/foo/__init__.py) 

        (Note only the first characters need to be escaped.)

      3. Alternatively, you can escape the characters in your URL and it will then automatically generate the correctly formatted URL, e.g. 
        http://example.com/foo/\_\_init__.py 
      4. Put angle brackets around your link, this will make it a URI autolink.
        <http://example.com/foo/__init__.py> 

         

            Unassigned Unassigned
            4c762d6af390 Corey Steele
            Votes:
            1 Vote for this issue
            Watchers:
            8 Start watching this issue

              Created:
              Updated: