Text file src/go/doc/comment/testdata/link6.txt

     1  -- input --
     2  URLs with punctuation are hard.
     3  We don't want to consume the end-of-sentence punctuation.
     4  
     5  For example, https://en.wikipedia.org/wiki/John_Adams_(miniseries).
     6  And https://example.com/[foo]/bar{.
     7  And https://example.com/(foo)/bar!
     8  And https://example.com/{foo}/bar{.
     9  And https://example.com/)baz{foo}.
    10  
    11  [And https://example.com/].
    12  
    13  -- gofmt --
    14  URLs with punctuation are hard.
    15  We don't want to consume the end-of-sentence punctuation.
    16  
    17  For example, https://en.wikipedia.org/wiki/John_Adams_(miniseries).
    18  And https://example.com/[foo]/bar{.
    19  And https://example.com/(foo)/bar!
    20  And https://example.com/{foo}/bar{.
    21  And https://example.com/)baz{foo}.
    22  
    23  [And https://example.com/].
    24  
    25  -- text --
    26  URLs with punctuation are hard. We don't want to consume the end-of-sentence
    27  punctuation.
    28  
    29  For example, https://en.wikipedia.org/wiki/John_Adams_(miniseries).
    30  And https://example.com/[foo]/bar{. And https://example.com/(foo)/bar! And
    31  https://example.com/{foo}/bar{. And https://example.com/)baz{foo}.
    32  
    33  [And https://example.com/].
    34  
    35  -- markdown --
    36  URLs with punctuation are hard. We don't want to consume the end-of-sentence punctuation.
    37  
    38  For example, [https://en.wikipedia.org/wiki/John\_Adams\_(miniseries)](https://en.wikipedia.org/wiki/John_Adams_(miniseries)). And [https://example.com/\[foo]/bar](https://example.com/[foo]/bar){. And [https://example.com/(foo)/bar](https://example.com/(foo)/bar)! And [https://example.com/{foo}/bar](https://example.com/{foo}/bar){. And [https://example.com/](https://example.com/))baz{foo}.
    39  
    40  \[And [https://example.com/](https://example.com/)].
    41  
    42  -- html --
    43  <p>URLs with punctuation are hard.
    44  We don&apos;t want to consume the end-of-sentence punctuation.
    45  <p>For example, <a href="https://en.wikipedia.org/wiki/John_Adams_(miniseries)">https://en.wikipedia.org/wiki/John_Adams_(miniseries)</a>.
    46  And <a href="https://example.com/[foo]/bar">https://example.com/[foo]/bar</a>{.
    47  And <a href="https://example.com/(foo)/bar">https://example.com/(foo)/bar</a>!
    48  And <a href="https://example.com/{foo}/bar">https://example.com/{foo}/bar</a>{.
    49  And <a href="https://example.com/">https://example.com/</a>)baz{foo}.
    50  <p>[And <a href="https://example.com/">https://example.com/</a>].
    51  

View as plain text