Skip to content

Add Material theme style#1662

Merged
Anteru merged 6 commits intopygments:masterfrom
paw-lu:material-theme
Feb 7, 2021
Merged

Add Material theme style#1662
Anteru merged 6 commits intopygments:masterfrom
paw-lu:material-theme

Conversation

@paw-lu
Copy link
Copy Markdown
Contributor

@paw-lu paw-lu commented Jan 5, 2021

Adds a material style based on the popular theme of the same name.

Closes #1661

@Anteru Anteru added this to the 2.8 milestone Jan 14, 2021
Comment thread pygments/styles/material.py Outdated
@Anteru Anteru self-assigned this Feb 6, 2021
@paw-lu
Copy link
Copy Markdown
Contributor Author

paw-lu commented Feb 7, 2021

Adjusted the line numbers and highlight colors a bit to be more faithful to the original theme.

Ran into the same issue as @sirex on #1659—where I had to set noclasses=True to preview the special formatting.

@Anteru Anteru merged commit 3c86379 into pygments:master Feb 7, 2021
@Anteru
Copy link
Copy Markdown
Collaborator

Anteru commented Feb 7, 2021

Ok, I think the class issue is fixed in #1701. I'll merge the theme for now, thanks for your contribution, and going forward nobody should have to suffer like you did! Thanks!

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.

Add material theme style

2 participants