Skip to content

Instantly share code, notes, and snippets.

View ggrossetie's full-sized avatar
😅
Hi!

Guillaume Grossetie ggrossetie

😅
Hi!
View GitHub Profile
@ggrossetie
ggrossetie / quote.adoc
Created July 6, 2019 12:14
AsciiDoc syntax

quote - a quotation or excerpt; attribution with title of source are optional

— attribution
citetitle

Document

Toggle Me

This content is revealed when the "Toggle Me" label is clicked.

@ggrossetie
ggrossetie / gist.js
Created November 19, 2018 14:19
Asciidoctor.js Gist extension
registry.blockMacro(function () {
const self = this;
self.named('gist')
self.process(function (parent, target, attrs) {
const titleHTML = attrs.title ? `<div class="title">${attrs.title}</div>\n` : ''
const html = `<div class="openblock gist">
${titleHTML}<div class="content">
<script src="https://gist.github.com/${target}.js"></script>
</div>
</div>`

This release is based on Asciidoctor 1.5.7.1 and Opal 0.11.99.dev (e2167f4b).

What's new and noteworthy...

In this release, we added initial support for GraalVM. If you want to embed Asciidoctor.js in a JVM-based application with GraalVM, please read the dedicated section in the User Manual.

A complete set of API is available to take full advantage of the new logging system introduced in Asciidoctor 1.5.7. Everything you need to know about the new Logging API is described in the User Manual:

@ggrossetie
ggrossetie / maven-security-cheat-sheet.adoc
Created September 30, 2018 17:50
10 Maven Security Best Practices

Cheat Sheet: 10 Maven Security Best Practices

Encrypt your Secrets

$ mvn --encrypt-master-password
Master password: *********
{encrypted_master_password}

Inline quote parser

Unterminated markup (constrained)

*hello
[
Use `/*` and `*/` for multiline comments.
[
  Inline(:plain,      text='Use ',  children=[]),
  Inline(:monospaced, text='/*',    children=[]),
@ggrossetie
ggrossetie / gitbook-to-antora.adoc
Created June 3, 2018 10:47
GitBook to Antora: Migration guide
@ggrossetie
ggrossetie / include-lines.adoc
Created April 9, 2018 13:37
include-lines.adoc

First line Second line Third line Fourth line

@ggrossetie
ggrossetie / include-tag.adoc
Last active April 9, 2018 13:44
include-tag.adoc

tag-a tag-b