mirror of https://github.com/Requarks/wiki.git
committed by
GitHub
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
6 changed files with 125 additions and 14 deletions
Split View
Diff Options
-
2.vscode/settings.json
-
19client/components/editor/editor-asciidoc.vue
-
10client/components/editor/editor-markdown.vue
-
17client/modules/asciidoc-extended.js
-
86client/themes/default/scss/app.scss
-
5server/modules/rendering/asciidoc-core/renderer.js
@ -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'}) |
|||
}) |
|||
}) |
|||
} |
Write
Preview
Loading…
Cancel
Save