Class KonceptIdenticonFigureBlockMacro
java.lang.Object
org.asciidoctor.extension.BaseProcessor
org.asciidoctor.extension.MacroProcessor<org.asciidoctor.ast.StructuralNode>
org.asciidoctor.extension.BlockMacroProcessor
network.ike.docs.koncept.KonceptIdenticonFigureBlockMacro
- All Implemented Interfaces:
org.asciidoctor.extension.Processor
@Name("koncept-identicon-figure")
public class KonceptIdenticonFigureBlockMacro
extends org.asciidoctor.extension.BlockMacroProcessor
AsciidoctorJ block macro that renders a koncept's identicon as a real, captioned
figure — for prose that talks about identicons (a "How to Read This Guide"
front matter) and needs to show one at figure size, not badge size.
Usage in AsciiDoc, per the image standards (block title and alt text always present):
.The identicon of English Language (SOLOR) koncept-identicon-figure::EnglishLanguage[width=96]
The image is the same LifeHash PNG every badge embeds (IdenticonRenderer,
byte-identical to Komet's) — never a hand-exported asset that could drift. The target
resolves through KonceptResolver exactly as a k: reference does; a
target with no computable identity renders a visible placeholder instead of a broken
figure. On the html family the figure embeds a data: URI (deployable output,
no loose files); file-referencing backends (DocBook→FO, Prawn) get the
content-addressed PNG file the inline badges already use. The width attribute
(default 96) sizes the display; the PNG itself stays at Komet's native
128×128.
-
Field Summary
Fields inherited from class org.asciidoctor.extension.MacroProcessor
name -
Constructor Summary
ConstructorsConstructorDescriptionCreates a new block macro processor instance. -
Method Summary
Methods inherited from class org.asciidoctor.extension.MacroProcessor
getName, options, setNameMethods inherited from class org.asciidoctor.extension.BaseProcessor
createBlock, createBlock, createBlock, createBlock, createBlock, createBlock, createBlock, createDocument, createList, createList, createList, createListItem, createListItem, createPhraseNode, createPhraseNode, createPhraseNode, createPhraseNode, createPhraseNode, createPhraseNode, createSection, createSection, createSection, createSection, createSection, createTable, createTable, createTableCell, createTableCell, createTableCell, createTableCell, createTableColumn, createTableColumn, createTableRow, getConfig, log, newCursor, newCursor, newCursor, newReader, newReader, newReader, newReader, parseContent, setConfig, unwrap, updateConfig
-
Constructor Details
-
KonceptIdenticonFigureBlockMacro
public KonceptIdenticonFigureBlockMacro()Creates a new block macro processor instance.
-
-
Method Details
-
process
-