mirror of https://github.com/requarks/wiki
Added basic asciidoc extension for [SUCCESS] block admonition. Need to fix corner radii not rendering
parent
101dd11630
commit
155087ac6f
@ -0,0 +1,17 @@
|
|||||||
|
// Asciidoctor API Documentation for HTML5Converter:
|
||||||
|
// https://www.rubydoc.info/gems/asciidoctor/2.0.23/Asciidoctor/Converter/Html5Converter#convert_admonition-instance_method
|
||||||
|
|
||||||
|
module.exports = function (registry) {
|
||||||
|
// Success Admonition block rendering
|
||||||
|
// [SUCCESS]
|
||||||
|
// <paragraphContent>
|
||||||
|
registry.block(function () {
|
||||||
|
var self = this
|
||||||
|
self.named('SUCCESS')
|
||||||
|
self.onContext('paragraph')
|
||||||
|
self.process(function (parent, reader) {
|
||||||
|
var lines = reader.getLines()
|
||||||
|
return self.createBlock(parent, 'admonition', lines, {name: 'success', textlabel: 'Success'})
|
||||||
|
})
|
||||||
|
})
|
||||||
|
}
|
||||||
Loading…
Reference in new issue