Skip to content

Instantly share code, notes, and snippets.

@dfrommi
Last active June 5, 2022 21:13
Show Gist options
  • Select an option

  • Save dfrommi/54613e8e23b377574dd04258dfb4290f to your computer and use it in GitHub Desktop.

Select an option

Save dfrommi/54613e8e23b377574dd04258dfb4290f to your computer and use it in GitHub Desktop.
Common Asciidoc-setting for Gist adocs

Tips for Writing AsciiDoc in Gists

Syntax highlighting

Document configuation

Preamble that also renders nicely locally.

ifdef::env-github[]
:tip-caption: :bulb:
:note-caption: :information_source:
:important-caption: :heavy_exclamation_mark:
:caution-caption: :fire:
:warning-caption: :warning:

:diagram: source,mermaid
endif::[]

ifndef::env-github[]
:diagram: mermaid
:icons: font
:mmdc: /usr/local/bin/mmdc
endif::[]

Start mermaid-diagrams with [{diagram}]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment