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.
Make image parsing a little more sane, by having an explicit char_ima…
…ge function (that delegates most work to char_link). The current situation is incredibly hacky, because char_link has to reach into the output buffer to remove the last exclamation mark. For a non-standard renderer that does not just echo normal text to the output, this doesn't work well.
- Loading branch information
Jeremy Sharpe
committed
Dec 3, 2015
1 parent
b234ae0
commit b1402b5
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