Skip to content

Re-enable syntax highlighting. #1070

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

Merged
merged 1 commit into from
Sep 23, 2017

Conversation

treiff
Copy link
Contributor

@treiff treiff commented Sep 21, 2017

Syntax highlighting seems to be working as intended now. I tested by publishing a create locally with a README.md including a couple of code samples, see below for a screenshot. Thanks for the help, and please let me know if you have any questions.

Closes #1008

screen shot 2017-09-21 at 1 07 28 pm

- Added `code` tag and corresponding `class` attribute to the whitelisted `tag_attributes`.
- Added `allowed-classes` for the `code` tag.

Test for adding classes to non whitelisted tags.
Copy link
Contributor

@sgrif sgrif left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM but @carols10cents should take a look at this before it's merged.

@carols10cents
Copy link
Member

Looks great!! Thank you!! 🔴 🔵 ⚫️ ⚪️

bors: r+

bors-voyager bot added a commit that referenced this pull request Sep 23, 2017
1070: Re-enable syntax highlighting. r=carols10cents

Syntax highlighting seems to be working as intended now.  I tested by publishing a create locally with a `README.md` including a couple of code samples, see below for a screenshot. Thanks for the help, and please let me know if you have any questions.

Closes #1008 

<img width="963" alt="screen shot 2017-09-21 at 1 07 28 pm" src="https://user-images.githubusercontent.com/5225538/30719271-d79969e8-9ef0-11e7-878d-064a62a4dbeb.png">
@bors-voyager
Copy link
Contributor

bors-voyager bot commented Sep 23, 2017

Build succeeded

@bors-voyager bors-voyager bot merged commit 164f0d8 into rust-lang:master Sep 23, 2017
@treiff treiff deleted the re-enable-syntax-highlighting branch October 11, 2017 00:30
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.

3 participants