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

<tt> tags are not skipped by EmojiFilter #147

Merged
merged 1 commit into from
Oct 5, 2014

Conversation

moskvax
Copy link
Contributor

@moskvax moskvax commented Sep 18, 2014

The rest2html command in github/markup outputs HTML4, so it wraps rst inline literals with <tt> instead of <code>. The emoji filter doesn't recognize <tt> as a tag that contains literal content, and emoji are substituted where they shouldn't be.

Toy example: https://github.com/moskvax/test/tree/master/test
Real example: https://github.com/mpv-player/mpv/blob/master/DOCS/man/vf.rst

@jch
Copy link
Contributor

jch commented Sep 27, 2014

Can you add a test for this?

@jch jch added this to the 2.0 milestone Oct 5, 2014
@jch
Copy link
Contributor

jch commented Oct 5, 2014

🍻

jch added a commit that referenced this pull request Oct 5, 2014
<tt> tags are not skipped by EmojiFilter
@jch jch merged commit 6af184e into gjtorikian:master Oct 5, 2014
@JuanitoFatas JuanitoFatas mentioned this pull request Feb 25, 2015
@moskvax moskvax deleted the emojifilter-skip-tt-tags branch July 21, 2015 01:05
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.

2 participants