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

resolves #1040 add syntax highlighter adapter for Rouge #3033

Merged

Conversation

mojavelinux
Copy link
Member

@mojavelinux mojavelinux commented Jan 26, 2019

resolves #1040

  • add SyntaxHighlighter adapter implementation for Rouge
  • change CSS class of line numbering table for Pygments and Rouge to linenotable
  • reuse styles from default stylesheet to layout the line number column
  • remove nested <pre> wrapper in Pygments output when line numbering is enabled and linenums mode is inline
  • ensure syntax highlighter library is loaded when looking up base style
  • add the rouge gem as a development dependency

- add SyntaxHighlighter adapter implementation for Rouge
- support CGI options attached to language (e.g., "console?prompt=$ ")
- change CSS class of line numbering table for Pygments and Rouge to linenotable
- reuse styles from default stylesheet to layout the line number column
- remove nested pre wrapper in Pygments output when line numbering is enabled and linenums mode is inline
- ensure syntax highlighter library is loaded when looking up base style
- add the rouge gem as a development dependency
@mojavelinux mojavelinux merged commit cb16fea into asciidoctor:master Feb 3, 2019
@mojavelinux mojavelinux deleted the issue-1040-rouge-adapter branch February 3, 2019 21:20
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.

Integrate Rouge for source highlighting
1 participant