Topic Header |
This topic details the AMDL syntax and semantics of topic headers.
Topic headers serve the following purposes:
Specify the topic's title.
Terminate the topic's summary, if present.
Optionally, assign values to the topic's attributes.
Two header syntaxes are defined:
a line consisting of
zero to three space characters, followed by
unformatted text, followed by,
optionally, an attribute enclosure;
a line consisting of
zero to three space characters, followed by,
one or more = (equals) characters, followed by,
optionally, any number of space characters.
a line consisting of
optionally, up to three space characters, followed by
a # (hash) character, followed by
one or more space characters, followed by
unformatted text, followed by,
optionally, any number of space characters followed by any number of # characters, followed by,
optionally, an attribute enclosure.
In both syntaxes the text must be XML-escaped, i.e.
all occurrences of < must be replaced with <,
all occurrences of > must be replaced with >, and
all occurrences of & must be replaced with &.
If a topic's title is unspecified, the topic's identifier will be used.
Topic Header ============
# Headers
This topic's header.
The header of the Block Elements topic.
Topic attributes may be specified using the following syntax:
{#identifier .class1 .class2 name1="value1" name2="value2" ...}
The following attributes are defined:
a globally unique string value to be used for resolving internal links to the topic. If no value is specified, a unique identifier will be assigned based on the topic file name; detailed algorithm TBD.
any of the following:
autoOutline - equivalent to specifying autoOutline="true".
noSeeAlso - equivalent to specifying noSeeAlso="true".
a Boolean value indicating whether an automatic topic outline should be generated. If no attribute value is specified, a topic outline shall be generated for a topic with a setext-style header, and shall not be generated otherwise.
an integer value indicating the maximum depth of the automatic topic outline, if one is generated. If no attribute value is specified, a zero-depth outline shall be generated.
a string value that will be used as the lead-in text rendered before the automatic outline, if one is generated. If an empty string is specified, the lead-in text shall be omitted. If no attribute value is specified, a default lead-in text shall be rendered.
a Boolean value indicating whether the See Also section will be excluded from the automatic topic outline, if both are generated. If no attribute value is specified, the See Also section shall be included if it is specified through a setext-style header, and shall be excluded otherwise.
No inline formatting is permitted in topic headers.
Partial, pending parser modification.
Attributes are unsupported.
Use different header syntaxes to affect automatic outline rendering.