mirror of
https://github.com/showdownjs/showdown.git
synced 2024-03-22 13:30:55 +08:00
0cc55b07ee
Using the simplifiedAutoLink option does not return the expected GFM behaviour when parsing links without a http prefix. Previously, `www.google.com` would be parsed into `<a href="www.google.com">www.google.com</a>`. With this fix, showdown behaves like GFM, and the result is `<a href="http://www.google.com">www.google.com</a>` Closes #284, closes #285
26 lines
567 B
HTML
26 lines
567 B
HTML
<table>
|
|
<thead>
|
|
<tr>
|
|
<th>First Header</th>
|
|
<th>Second Header</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
<tr>
|
|
<td><strong>bold</strong></td>
|
|
<td><img src="foo.jpg" alt="img" /></td>
|
|
</tr>
|
|
<tr>
|
|
<td><em>italic</em></td>
|
|
<td><a href="bla.html">link</a></td>
|
|
</tr>
|
|
<tr>
|
|
<td><code>some code</code></td>
|
|
<td><a href="www.google.com">google</a></td>
|
|
</tr>
|
|
<tr>
|
|
<td><a href="http://www.foo.com">www.foo.com</a></td>
|
|
<td>normal</td>
|
|
</tr>
|
|
</tbody>
|
|
</table> |