mirror of https://github.com/Requarks/wiki.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
17 lines
600 B
17 lines
600 B
// 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'})
|
|
})
|
|
})
|
|
}
|