Skip to content

AsciiDoc Tests

Tristano Ajmone edited this page Jan 26, 2019 · 1 revision

GitHub AsciiDoc Preview Tests

This document contains some conditional statements to hack the GitHub preview, without compromising the HTML backend during conversion:

  • Enable Admonitions font icons via emojii.

  • Place TOC after Preamble via toc::[] macro.



Example Blocks

I’ve noticed that in GitHub previews of AsciiDoc files Example blocks are not styled as expected, so I wanted to test various syntax approaches…​

But it looks like GitHub doesn’t style example blocks at all.

Delimiters Only

This is an example block with enclosing delimiters only (====).

Block Name Only

This is an example block with a only a block name ([example]), no delimiters.

Delimiters and Block Name

This is an example block with both a block name ([example]) and enclosing delimiters (====).

Clone this wiki locally