Skip to content

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

Merged
gjtorikian merged 2 commits intogithub:masterfrom
moskvax:rest2html-code-not-tt
Nov 21, 2014
Merged

Output <code> instead of <tt> for inline literals in rst files#370
gjtorikian merged 2 commits intogithub:masterfrom
moskvax:rest2html-code-not-tt

Conversation

@moskvax
Copy link
Copy Markdown
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
Copy Markdown
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