Skip to content

Instantly share code, notes, and snippets.

@dzintars
Last active June 26, 2021 12:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dzintars/eed5408b51a3a0a0738b61904b7b0710 to your computer and use it in GitHub Desktop.
Save dzintars/eed5408b51a3a0a0738b61904b7b0710 to your computer and use it in GitHub Desktop.
AsciiDoc snippets for GitHub

Collection of things you can do with AsciiDoc in GitHub

This is WIP to see what works and what not.

Admonitions (work)

ℹ️

A sample note admonition. We can use gemoji icons in the Asciidoctor markup. We assign an icon name to the document attributes tip-caption, note-caption and important-caption.

💡
It works!
Asciidoctor is awesome, don’t forget!
🔥
Don’t forget to add the …​-caption document attributes in the header of the document on GitHub.
⚠️
You have no reason not to use Asciidoctor.

Source linenums (doesn’t work)

It looks like those are not supported in the GitHub. Nor the global ones, nor block level.

// File: main.go
func main() {
  fmt.Println("Hello AsciiDoc")
}

Collapsible content (work)

Read more…​
  • Hello AsciiDoc

Inline code syntax (doesn’t work, need more research)

There goes some func main(){} code snippet.

Emails (work)

Dzintars Klavins <dzintars.dev@gmail.com>

Attributes (work)

My first name is Dzintars

Include external code snippet (doesn’t work)

link:https://raw.githubusercontent.com/oswee/terraform-libvirt-domain/master/main.tf[role=include]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment