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

Whitelist Pygments options #2642

Merged
merged 3 commits into from Jul 29, 2014
Merged

Whitelist Pygments options #2642

merged 3 commits into from Jul 29, 2014

Conversation

parkr
Copy link
Member

@parkr parkr commented Jul 29, 2014

Whitelists the following:

  • :startinline
  • :hl_linenos
  • :linenos
  • :encoding (which we always override as utf-8 anyway)
  • :cssclass

/cc @mastahyeti @ptoomey3

@parkr parkr merged commit 4df274f into master Jul 29, 2014
@parkr parkr deleted the pygments-opts-sanitize branch July 29, 2014 21:33
parkr added a commit that referenced this pull request Jul 29, 2014
@albertogg
Copy link
Member

OMG! this is so cool! but how are they meant to be used? through {% highlight %}?

@parkr
Copy link
Member Author

parkr commented Jul 29, 2014

@albertogg The SYNTAX const is still a bit messed up, but the regexp in scan seems to work well for fetching arbitrary params. The params listed above will be available on GHP if/when 2.1 support is added.

@albertogg
Copy link
Member

ahh ok, 👍 thanks @parkr!

@btoews
Copy link
Contributor

btoews commented Jul 30, 2014

🆒

@jekyll jekyll locked and limited conversation to collaborators Feb 27, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants