|
NAMEronn-format - manual authoring format based on MarkdownSYNOPSISname(1) -- short, single-sentence description ============================================= ## SYNOPSIS `name` [<optional>...] <flags> ## DESCRIPTION A normal paragraph. This can span multiple lines and is terminated with two or more line endings -- just like Markdown. Inline markup for `code`, `user input`, and **strong** are displayed boldface; <variable>, _emphasis_, *emphasis*, are displayed in italics (HTML) or underline (roff). Manual references like sh(1), markdown(7), roff(7), etc. are hyperlinked in HTML output. Link to sections like [STANDARDS][], [SEE ALSO][], or [WITH A DIFFERENT LINK TEXT][#SEE-ALSO]. Definition lists: * `-a`, `--argument`=[<value>]: One or more paragraphs describing the argument. * You can put whatever you *want* here, really: Nesting and paragraph spacing are respected. Frequently used sections: ## OPTIONS ## SYNTAX ## ENVIRONMENT ## RETURN VALUES ## STANDARDS ## SECURITY CONSIDERATIONS ## BUGS ## HISTORY ## AUTHOR ## COPYRIGHT ## SEE ALSO DESCRIPTIONThe ronn(1) command converts text in a simple markup to UNIX manual pages. The syntax includes all Markdown formatting features, plus conventions for expressing the structure and various notations present in standard UNIX manpages.Not all roff(7) typesetting features can be expressed using ronn syntax. MANPAGE TITLEManpages have a name, section, and a one-line description. Files must start with a level one heading defining these attributes:
Indicates that the manpage is named ls in manual section 1 ( SECTION HEADINGSMan section headings are expressed with markdown level two headings. There are two syntaxes for level two headings.Hash prefix syntax:
Dash underline syntax:
Section headings should be all uppercase and may not contain inline markup. INLINE MARKUPManpages have a limited set of text formatting capabilities. There´s basically boldface and italics (often displayed using underline). Ronn uses the following bits of markdown(7) to accomplish this:
Here is grep(1)´s DESCRIPTION section represented in ronn:
DEFINITION LISTSThe definition list syntax is compatible with markdown´s unordered list syntax but requires that the first line of each list item be terminated with a colonAn example definition list, taken from BSD test(1)´s DESCRIPTION section:
LINKSAll markdown(7) linking features are supported.Markdown reference-style links can be used to link to specific sections by name:
The anchor name would be #SECTION-1 and #SECTION-2. All non-word characters are removed and spaces are replaced by dashes. SEE ALSOronn(1), markdown(7), roff(7)
Visit the GSP FreeBSD Man Page Interface. |