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

Output <code> instead of <tt> for inline literals in rst files #370

Merged
merged 2 commits into from
Nov 21, 2014

Conversation

moskvax
Copy link
Contributor

@moskvax moskvax commented Sep 18, 2014

When encountering inline literals in rst, <tt> is output by rest2html, because that's what docutils generally does. The renderer for every other format outputs <code> for inline literals. Not accounting for <tt> results in emoji being inserted into rst inline literals, an issue which I also submitted a pull request for here

@gjtorikian
Copy link
Contributor

Hah! Great catch.

/cc @github/user-content N.B. that the removal of classes (docutils literal) is totally safe. We strip those out with the SanitizationFilter, so they've never affected styles on .com.

gjtorikian added a commit that referenced this pull request Nov 21, 2014
Output <code> instead of <tt> for inline literals in rst files
@gjtorikian gjtorikian merged commit cf3c9fe into github:master Nov 21, 2014
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