| Age | Commit message (Collapse) | Author |
|
|
|
being selected (PR #4132)
- set user-select to none on enclosing line numbers element for CodeRay, Rouge, and Pygments
|
|
|
|
- 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
|
|
- use highlight attribute on source block to specify lines to be highlighted
- add method to resolve the highlight lines spec
- disable bold_every option in CodeRay
- darken bolded line numbers in default CodeRay theme
|
|
|
|
|
|
- clean up abstract block styles
- darken lead paragraph color
- increase line-height on block title, decrease margin
- update & shrink CodeRay styles
- drop generic font-family names
- style quote blocks like quote blocks
- style verse blocks like verse blocks
- lighten table header background color
- make toc title responsive
- properly align floating section anchor
- add background color on listing blocks when not added by highlighter theme
- reduce size, reposition of floating language text in listingblock
- increase size of conum
- tweak letter and word spacings
- don't use color on qanda question text
- add background color to exampleblock
- darken listingblock color in sidebarblock
- fix appearance of listingblock in print styles
|
|
- shrink CSS
- change line-height of headers to 1.2
- adjust width of floating section anchors
- set z-index on floating section anchors to overlay sidebar toc
- style abstract
- use ems for callout bullet size
|
|
- change default Pygments style to "default"
- change default highlight.js style to "github"
- upgrade to highlight.js 8.1
|
|
- Open Sans (Light) for section and block titles
- Noto Serif for body text
- Droid Sans Mono for code and literal text
- fallback to DejaVu fonts if fonts aren't loaded
- control loading of fonts using webfonts attribute
- align colors to color palette
- remove background color and border on inline monospaced text
- use style class for admonition icons that won't conflict with FontAwesome
- remove several unused style declarations
- add background color to toc sidebar
- fix margins in sidebar toc
- don't underline links in TOC
- fix padding in labeled list terms
- fix spacings in blockquote
- add program language label for "Go"
- fix padding around listing block content
|
|
- rewrite converter API
- separate built-in converters from template converter
- rename renderer/render to converter/convert
- make converter an extension point (resolves #778)
- base built-in converters on the converter API
- rename template_name property to node_name on AbstractNode
- make block_ prefix on file name of block-level templates optional
- use thread_safe gem for template and converter caches (resolves #638)
- introduce Stylesheets API to manage stylesheets
- move file write logic to Document
- delegate file write logic to converter that implements Writer
- remove compact logic, deprecate related options
- duplicate options and attributes passed to APIs, add tests
- assign doctype / backend attributes correctly when document is loaded, add tests
- report proper error if nil is passed to load_file and convert_file
- use span tag to group kbd combination in html5 backend
- setup toc in preamble if toc attribute is preamble
- Opal compatibility fixes, use built-in HTML5 converter
- make the outline method accessible to all html converters
- document the converter APIs along with some minor cleanups in terminology
- load stylesheets from data directory
- rename ruler block to thematic_break
- add inline? and block? query methods to AbstractNode
- use Timings class to measure and report timings from processor steps
- fix cucumber tests
- upgrade tilt dependency to 2.0.0
- minor optimizations
|