Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding handler support for HTML entities. #2

Merged
merged 1 commit into from
Dec 12, 2013

Conversation

jmacdotorg
Copy link
Contributor

Currently, markdown2pod crashes if it encounters an HTML entity such as & or < in the source text. This is because its handler does not define the html_entity method that Markdent::Role::EventsAsMethods expects.

This patch provides this method, transforming the given HTML entity into a POD E<...> entity. It also provides a trivial test for it.

keedi added a commit that referenced this pull request Dec 12, 2013
Adding handler support for HTML entities.
@keedi keedi merged commit 2d9829c into keedi:develop Dec 12, 2013
@keedi
Copy link
Owner

keedi commented Dec 12, 2013

++@jmacdotorg
Cool! Thanks for the patch. :-)

@jmacdotorg jmacdotorg deleted the html-entities branch December 12, 2013 06:41
@keedi
Copy link
Owner

keedi commented Dec 12, 2013

Just released v0.004. Thanks!

@jmacdotorg
Copy link
Contributor Author

Welcome... thanks for writing this script. Made good use of it this week, and was happy that it existed!

N.B.: I have an open pull request on houseabsolute/Markdent#1 that fixes another bug involving list numbering; will open another PR here (with a Markdent required-version bump) if and when that other PR gets merged.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants