File: block.adoc

package info (click to toggle)
ruby-asciidoctor-pdf 2.3.19-3
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 15,972 kB
  • sloc: ruby: 44,316; sh: 133; java: 45; makefile: 4
file content (44 lines) | stat: -rw-r--r-- 1,058 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
= Block Category Keys
:description: Reference list of the available global block category keys and their value types.
:navtitle: Block
:source-language: yaml

The keys in the `block` category control the anchor position and spacing below block elements when a more specific setting isn't designated.
Block styles are applied to the following block types:

[cols="2*a",width=75%,grid=none,frame=none]
|===
|
* admonition
* block image
* code (listing, literal, source)
* example
|
* quote
* sidebar
* table
* verse
|===

To control the spacing and indentation for paragraphs, see xref:prose.adoc[].

The bottom margin (`margin-bottom`) is only added if the block is followed by an adjacent block within the same enclosure (e.g., a sidebar, a table cell, or the area outside any blocks).

[cols="3,4,6a"]
|===
|Key |Value Type |Example

|anchor-top
|xref:measurement-units.adoc[Measurement] +
(default: `0`)
|[source]
block:
  anchor-top: -12

|margin-bottom
|xref:measurement-units.adoc[Measurement] +
(default: `12`)
|[source]
block:
  margin-bottom: 6
|===