-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Allow attachment images to be used within block elements
Image attachments can be embedded inside HTML block level elements to different degrees of validity eg inside a <p> that's invalid whereas inside a <td> it's valid. However the way kramdown handles these scenarios is not desirable in either instance. It will convert the block level HTML elements into their HTML entity equivalent - thus an end user would see <div class="img"> on their screen. The way I've fixed this isn't pretty, we try output the image in a single line - which resolves some issues - and then we try convert back elements we expect to have been converted back to HTML.
- Loading branch information
Showing
4 changed files
with
71 additions
and
24 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
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