Skip to content

Commit f675886

Browse files
committed
Add asciidoctor role samples
To visualize available text styling via roles.
1 parent 207acc9 commit f675886

File tree

1 file changed

+33
-0
lines changed

1 file changed

+33
-0
lines changed

doc/tests/cljdoc-features.adoc

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -240,6 +240,39 @@ An autowidth table will only be as wide as it needs to be.footnote:[file,grabbed
240240
|Cell in column 3, row 2
241241
|===
242242

243+
== Text Roles
244+
245+
=== size
246+
Text can be [big]#Big# or [small]#small#.
247+
248+
=== lines
249+
250+
We can add [underline]#underline#, [overline]#overline# and
251+
[line-through]#line-through#.
252+
253+
=== foreground color
254+
255+
We have a choice of 16 foreground colors: [aqua]#aqua# [black]#black#
256+
[blue]#blue# [fuchsia]#fuschia# [gray]#gray# [green]#green# [lime]#lime#
257+
[maroon]#maroon# [navy]#navy# [olive]#olive# [purple]#purple# [red]#red#
258+
[silver]#silver# [teal]#teal# [white]#white# [yellow]#yellow#.
259+
260+
=== background color
261+
262+
The same 16 colors are available as background colors: [aqua-background]#aqua#
263+
[black-background]#black# [blue-background]#blue# [fuchsia-background]#fuschia#
264+
[gray-background]#gray# [green-background]#green# [lime-background]#lime#
265+
[maroon-background]#maroon# [navy-background]#navy# [olive-background]#olive#
266+
[purple-background]#purple# [red-background]#red# [silver-background]#silver#
267+
[teal-background]#teal# [white-background]#white# [yellow-background]#yellow#
268+
269+
=== combinations
270+
Roles can be combined, some examples:
271+
[white black-background]#white on black-background#
272+
[red yellow-background]#red on yellow background#
273+
[big blue line-through fuchsia-background]#big blue line-through maroon-background#
274+
275+
243276
== Drawings
244277

245278
Do we support svgbob? Not yet but if we someday decide to, this sample from the svgbob demo site won't look like ASCII art.

0 commit comments

Comments
 (0)