summaryrefslogtreecommitdiff
path: root/Gemfile
diff options
context:
space:
mode:
authorDan Allen <dan.j.allen@gmail.com>2019-01-26 03:34:56 -0700
committerGitHub <noreply@github.com>2019-01-26 03:34:56 -0700
commit23ddbaed6818025cbe74365fec7e8101f34eadca (patch)
tree7220c71ed00ab456c43ec9febb20c69e090e07d7 /Gemfile
parent22d08e5bd2155496edd32cd55557683441f6a181 (diff)
resolves #2106 make syntax highlighter pluggable (PR #3016)
- define the Asciidoctor::SyntaxHighlighter module to handle all aspects of syntax highlighting - define built-in SyntaxHighlighter adapters for coderay, pygments, highlight.js, html-pipeline, and prettify - move all embedded syntax highlighting logic into SyntaxHighlighter adapters - allow SyntaxHighlighter adapter class to self register with a source highlighter name using register_for - load SyntaxHighlighter adapters lazily (except for highlight.js and html-pipeline) - add :syntax_highlighters and :syntax_highlighter_factory options to API to allow syntax highlighter resolution to be customized - instantiate SyntaxHighlighter adapter once header is finalized if source-highlighter attribute is set on document and basebackend is html - provide SyntaxHighlighter factory modules for registering syntax highlighter adapters (default, custom, and default proxy) - allow SyntaxHighlighter adapters to contribute docinfo at :head and :footer slots in HTML output document - move retrieval and writing of stylesheets for syntax highlighters to SyntaxHighlighter adapters - wire methods in Stylesheets class that pertain to syntax highlighting to SyntaxHighlighter adapters - remove hard-coded styles in Pygments output - update default stylesheets to support Pygments styles and drop CSS workarounds - don't fail if value of pygments-style attribute is not recognized; instead fallback to default style - don't remove nested pre tags in HTML produced by Pygments when linenums are enabled - update default stylesheet to avoid styling nested pre tags - rename pygments table class to pygments-table - change pygments base CSS selector from .listingblock .pygments to pre.pygments - allow color for generic text, line numbers, and line number border to inherit from Pygments style - align stylesheet for default CodeRay style with other syntax highlighters - set default background color for prettify using a selector with the lowest precedence - update and add tests - add tests for the Pygments integration - add pygments.rb dependency and enable Pygments integration tests if the environment variable PYGMENTS=true is set - move syntax highlighter tests to dedicated test file
Diffstat (limited to 'Gemfile')
-rw-r--r--Gemfile4
1 files changed, 4 insertions, 0 deletions
diff --git a/Gemfile b/Gemfile
index 95d23bc2..c531ccf1 100644
--- a/Gemfile
+++ b/Gemfile
@@ -3,6 +3,10 @@ source 'https://rubygems.org'
# Look in asciidoctor.gemspec for runtime and development dependencies
gemspec
+group :development do
+ gem 'pygments.rb' if ENV['PYGMENTS']
+end
+
group :doc do
gem 'yard'
gem 'yard-tomdoc'