diff options
| author | Dan Allen <dan.j.allen@gmail.com> | 2019-02-03 14:20:00 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-02-03 14:20:00 -0700 |
| commit | cb16fea43fdec80569c34fd34acdcda65e2c71a1 (patch) | |
| tree | 4871b62af6fc8f41f3a161b43f6c7c0ea10e9bca /data | |
| parent | f8a490063bc45190458678bc492ab3a1c5b321b3 (diff) | |
resolves #1040 add syntax highlighter adapter for Rouge (PR #3033)
- 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
Diffstat (limited to 'data')
| -rw-r--r-- | data/stylesheets/asciidoctor-default.css | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/data/stylesheets/asciidoctor-default.css b/data/stylesheets/asciidoctor-default.css index d0b21e57..a9f91bf1 100644 --- a/data/stylesheets/asciidoctor-default.css +++ b/data/stylesheets/asciidoctor-default.css @@ -223,13 +223,12 @@ pre.prettyprint .linenums{line-height:1.45;margin-left:2em} pre.prettyprint li{background:none;list-style-type:inherit;padding-left:0} pre.prettyprint li code[data-lang]::before{opacity:1} pre.prettyprint li:not(:first-child) code[data-lang]::before{display:none} -table.pygments-table{border-collapse:separate;border:0;margin-bottom:0;background:none} -table.pygments-table td{color:inherit;vertical-align:top;padding:0;line-height:inherit;white-space:normal} -table.pygments-table td.code{padding-left:.75em} -pre.pygments .lineno,table.pygments-table td.linenos{border-right:1px solid currentColor;opacity:.35} -pre.pygments .lineno{display:inline-block;margin-right:.75em} +table.linenotable{border-collapse:separate;border:0;margin-bottom:0;background:none} +table.linenotable td[class]{color:inherit;vertical-align:top;padding:0;line-height:inherit;white-space:normal} +table.linenotable td.code{padding-left:.75em} +table.linenotable td.linenos{border-right:1px solid currentColor;opacity:.35;padding-right:.5em} +pre.pygments .lineno{border-right:1px solid currentColor;opacity:.35;display:inline-block;margin-right:.75em} pre.pygments .lineno::before{content:"";margin-right:-.125em} -table.pygments-table td.linenos{padding-right:.5em} .quoteblock{margin:0 1em 1.25em 1.5em;display:table} .quoteblock>.title{margin-left:-1.5em;margin-bottom:.75em} .quoteblock blockquote,.quoteblock p{color:rgba(0,0,0,.85);font-size:1.15rem;line-height:1.75;word-spacing:.1em;letter-spacing:0;font-style:italic;text-align:justify} |
