Skip to content

Commit

Permalink
clean up formatting on page about custom attributes
Browse files Browse the repository at this point in the history
* use cell per line for table
* separate table rows using emptly line
* remove unnecessary use of AsciiDoc table cells
* use colspan correctly
  • Loading branch information
mojavelinux committed Feb 7, 2024
1 parent 18c4f13 commit 9664f78
Showing 1 changed file with 18 additions and 10 deletions.
28 changes: 18 additions & 10 deletions docs/modules/ROOT/pages/custom-attributes-option.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -18,16 +18,26 @@ You can also use xref:features.adoc#url-query-parameters[URL query parameters] t
Attributes can be set with and without a value, and unset.
The following table shows examples of setting attributes in AsciiDoc with their Custom Attribute equivalents.

[cols="3*a"]
|===
|Action |AsciiDoc |Custom Attributes example
|Action |In AsciiDoc |In custom attributes

|Set without a value |`:sectnums:` |`sectnums`
||`:experimental:` |`experimental`
|Set to a value |`:toc: left` |`toc=left`
| |`:toclevels: 1` |`toclevels=1`
|Unset |`:sectnums!:` |`sectnums!`
.2+s|Set without a value
|`:sectnums:`
|`sectnums`

|`:experimental:`
|`experimental`

.2+s|Set to a value
|`:toc: left`
|`toc=left`

|`:toclevels: 1`
|`toclevels=1`

s|Unset
|`:sectnums!:`
|`sectnums!`
|===

NOTE: Setting an attribute in the string is not a guarantee that it will take effect, as it may be incompatible with the browser view, or be overruled by another setting of that option.
Expand All @@ -39,6 +49,4 @@ For more ideas and use cases for setting attributes, see the xref:use-cases.adoc

== AsciiDoc attributes

To learn more about AsciiDoc attributes, visit the
xref:asciidoc:attributes:document-attributes.adoc[]
page of the AsciiDoc manual.
To learn more about AsciiDoc attributes, visit the xref:asciidoc:attributes:document-attributes.adoc[] page of the AsciiDoc manual.

0 comments on commit 9664f78

Please sign in to comment.