| Age | Commit message (Collapse) | Author |
|
|
|
|
|
on JRuby (PR #4444)
|
|
|
|
(included fully) in includes table of document catalog
|
|
|
|
- replace default branch with HEAD where possible (or drop reference, if possible)
- use readme anchor to link to README for project on GitHub
- use jsdelivr to reference file from repository on GitHub
- remove unused badges in README files
- make badge for chat consistent across README files
|
|
is set (PR #3766)
|
|
|
|
API (PR #3713)
- define load, convert, load_file, convert_file as module methods (e.g., `def self.load`)
- avoids conflict between `Asciidoctor.load` and `Kernel.load` when calling `include Asciidoctor`
- add test that Rouge integration works in combination with `include Asciidoctor`
|
|
target ends with an AsciiDoc file extension (PR #3439)
|
|
|
|
Allows plugging a template in to the html5 converter's outline node by replacing all direct calls to `convert_outline` with calls to the to the conversion named `outline`.
|
|
|
|
attribute (PR #3419)
|
|
|
|
#3239)
|
|
|
|
- enforce and report relative max include depth properly
- depth=0 on include directive disables nested includes (instead of depth=1)
- rename PreprocessorReader#exceeded_max_depth? to PreprocessorReader#exceeds_max_depth?
- change PreprocessorReader#exceeds_max_depth? to return nil if includes are disabled
- add api doc to PreprocessorReader#exceeds_max_depth?
|
|
* add docinfo insertion slot for header location to built-in converters
|
|
(PR #3057)
|
|
- remove the DocBook45Converter class
- remove accomodations in DocBook5Converter for DocBook 4.5
- don't register the docbook45 backend name in the converter registry
- drop docbook45 from the backend CLI option values
- don't mention DocBook 4.5 in the man page
- don't mention DocBook 4.5 in the CLI usage statement
- update tests to use DocBook 5 instead of DocBook 4.5
|
|
- 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 0 instead of <
- augment test to verify behavior of trim mode
- remove encoding setting from ERB template
|
|
|
|
- use timezone offset instead of OS dependent timezone string
- use UTC if offset is 0
- add tests
|
|
directory (PR #2748)
- autoload pathname
- use Pathname#relative_path_from to resolve path outside base directory
- add test
|
|
|
|
|
|
option enabled (PR #2708)
- add source_location property to Table::Cell
- add file and lineno methods to Table::Cell
- when sourcemap option is enabled, set source_location property on cell
- mark first line of table so line number for first cell is correct
- add tests to verify source_location information on table cell is correct
|
|
- set the source_location property on each list item in an item list
- set the source_location property on each list term in a description list
- set the source_location property on each list item in a description list
|
|
- warn if a tag specified in the include directive is unclosed in the include file
- add tests to verify warnings
- fix unclosed tags in test fixtures
- remove duplicate test
|
|
(PR #2683)
- allow any content after a tag directive if offset by a space
- add test to verify tag is found inside HTML inside a string in a source file
|
|
target included partially (PR #2686)
- change the includes key in the document catalog from a Set to a Hash
- don't track file included into the current file if included partially (partial-option attribute is set)
- don't track file included into the current file unless it's AsciiDoc
|
|
|
|
(PR #2511)
- match behavior of resolving local nested includes
- consistently set dir on Reader to '.' if file is not defined
|
|
set (PR #2421)
|
|
|
|
comments (#2199)
|
|
- in addition to including tags, add option to exclude tags using !name syntax
- introduce wildcard for including all (*) or excluding all (!*) tags
- introduce wildcard for selecting non-tagged lines (**)
- don't select nested tags with wildcard if ancestor tag is excluded
- warn if a mismatched or unexpected end tag is found
- improve efficiency of detecting and processing tag directives
- maintain a tag stack for handling nested tags
- skip call to push_include if selected lines array is empty
- ignore tag and tags attribute if empty (previously caused an infinite loop)
- add tests for excluding tags
|
|
|
|
|
|
- use object element to embed SVG in HTML if interactive option is set
- use format attribute on image macro to explicitly set image format
- embed SVG data directly into HTML if inline option is set (including remote URI)
- always use img element for SVG if safe mode is secure
- add CSS to make object element with image/svg+xml data and svg behave like img element
- add tests for SVG images
- consolidate/cleanup code in converter
|
|
on docinfo files
- add docinfosubs attribute to control substitutions performed on docinfo files
- don't parse attribute option to cli as an array (interfers with docinfosubs value)
- add method to resolve docinfosubs
- add tests for docinfosubs attribute
|
|
Resolves #511
|
|
|
|
|
|
|
|
|
|
|