Skip to content

AsciiDoc

John Gardner edited this page Jan 8, 2022 · 2 revisions

AsciiDoc Tests

Text formatting

Text styles

Plain text

Bold text

Italic text

Monospace (Plusses… correct?)

Monospace (Backticks… incorrect?)

Super/subscripts

Superscript/Subscript

Symbols

Node.js ® Apple © Superscripted TextMate Initials ™

Blocks

COPY+PASTA

ASCIIDoc allows paragraphs to have optional titles or icons to denote special sections.

Code blocks

dark-mode-test.svg
<?xml version="1.0" encoding="utf-8"?>
<svg version="1.1" width="512" height="512" viewBox="0 0 512 512"
	xmlns="http://www.w3.org/2000/svg"
	xmlns:xlink="http://www.w3.org/1999/xlink"
	xml:space="preserve"
><style type="text/css">
	text{
		font-size: 16px;
		font-family: sans-serif;
		font-weight: bold;
		display: none;
	}
	#unsupported{
		display: initial;
	}
	@media (prefers-color-scheme: dark){
		text         { fill:       #fff; }
		svg          { background: #000; }
		#unsupported { display:    none; }
		#dark        { display: initial; }
	}
	@media (prefers-color-scheme: light) {
		text         { fill:       #000; }
		svg          { background: #fff; }
		#unsupported { display:    none; }
		#light       { display: initial; }
	}
</style>
<text id="unsupported" y="20">Unsupported</text>
<text id="light" y="20">Light mode</text>
<text id="dark" y="20">Dark mode</text>
</svg>

Multi-line comments

Block-quotes

Quote blocks work much like comment blocks — simply create dividers using four underscores (__) around your quote. An example quote block is displayed below:

Other shite

This is presumably what a custom sidebar looks like.

Clone this wiki locally