Asciidoctor::HighlightJsAdapter
Inherits Asciidoctor::SyntaxHighlighterBase < Reference < Object
Client-side syntax highlighter adapter for highlight.js.
This adapter inserts the necessary CSS and JavaScript into the output document to enable client-side syntax highlighting using highlight.js.
Ported from Ruby Asciidoctor lib/asciidoctor/syntax_highlighter/highlightjs.rb
Constants
CDN_BASE_URL = "https://cdnjs.cloudflare.com/ajax/libs"
HIGHLIGHT_JS_VERSION = "9.18.3"
Constructors
Instance methods
docinfo(location : Symbol, doc : Document, opts : Hash(Symbol, String) = {} of Symbol => String) : String
Generates docinfo markup for this syntax highlighter to insert at the specified location in the output document.
Indicates whether this syntax highlighter has docinfo (i.e., markup) to insert into the output document at the specified location.