forked from hoedown/hoedown
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request hoedown#187 from jasharpe/saner_image_parsing
Make image parsing a little more sane, by having an explicit char_image function (that delegates most work to char_link).
- Loading branch information
Showing
4 changed files
with
42 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
<p>This is an <img src="/url" alt="image">.</p> | ||
|
||
<p>This is a tricky !<img src="/url" alt="image">.</p> | ||
|
||
<p>This is another tricky case: !<a href="/url">not image</a>.</p> | ||
|
||
<p>This is a reference <img src="/url2" alt="image">.</p> | ||
|
||
<p>Terminating !</p> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
This is an ![image](/url). | ||
|
||
This is a tricky !![image](/url). | ||
|
||
This is another tricky case: \![not image](/url). | ||
|
||
This is a reference ![image][ref]. | ||
|
||
[ref]: /url2 | ||
|
||
Terminating ! |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters