Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Allow passing extra args to code highlighter (#1683)
I primarily want to allow for the possibility of line numbers in HTML output. Pygments supports this natively, but we don't have a way to pass arguments through to pygments. A traitlet is added to allow passing arbitrary extra args to the Pygments formatter, for Html and LaTeX. Should allow for line number control and much more :) This has been something folks have asked for for a while. Ref ipython/ipython#5847 Ref #427 Ref yuvipanda/notebooksharing.space#34
- Loading branch information
Showing
1 changed file
with
27 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters