Text formatting

Text is stored exactly as you type it. A little notation is drawn as formatting when the text is shown: bold, italic, code, maths, links, and cites of other things in the workspace. A requirement's body can also hold headings, lists, quotes, code blocks and display maths (see Blocks in a body). Each form with a formatted field has a one-line reminder under it.

Where it applies

FieldFormatting
Requirement bodyAll of it, and blocks
Requirement statementAll of it except blocks
Verification descriptionAll of it except blocks
Mapping notesAll of it
Run content, and a run row's notesAll of it
List descriptionAll of it except cites: HW-3 stays as text
Titles and names (requirement, list, verification)Maths, code and backslash escapes only
Run notesNone. They are only ever shown in their edit box.

Bold, italic and code

You typeShown as
**shall not**shall not
*nominal*nominal
`PWR_CTRL[3]`PWR_CTRL[3]
`**not bold**`**not bold**

Maths

Text between single dollar signs is typeset as TeX, using KaTeX.

You typeShown as
$\tau = RC$τ=RC\tau = RC
$I_{max} \le 2\,\mathrm{A}$Imax≤2 AI_{max} \le 2\,\mathrm{A}
$V_{out} = V_{ref}\left(1 + \frac{R_1}{R_2}\right)$Vout=Vref(1+R1R2)V_{out} = V_{ref}\left(1 + \frac{R_1}{R_2}\right)

The workspace draws these with KaTeX's own fonts, so they look a little different there from this page.

A URL starting with http:// or https:// becomes a link that opens in a new tab. Punctuation at the end, such as a full stop, is left out of the link, and so is a closing bracket that has no opening bracket inside the URL:

See the regulator datasheet (https://example.com/datasheets/tps62133.pdf).

Cites

A cite of something in the workspace becomes a link to it, drawn with its current status:

You typeShown as
Derived from HW-3.Derived from HW-3.
Checked by VERIF-PWR.Checked by VERIF-PWR.
Failed in VERIF-PWR:RUN-3.Failed in VERIF-PWR:RUN-3.
See the FW list.See the FW list.
Per ISO-9001.Per ISO-9001.

Backslash escapes

You typeShown as
\*not italic\**not italic*
Unlike \HW-3, thisUnlike HW-3, this
C:\tempC:\temp

A backslash before punctuation shows that character as typed. Before a cite or URL, the backslash is hidden and the cite or URL is not linked. Any other backslash is shown.

Blocks in a body

A requirement's body is read as a series of blocks. A block starts at the beginning of a line, and indentation before it is allowed. Everything above still works inside paragraphs, headings, list items and quotes. A line ending inside a paragraph is shown as a line break, and a blank line starts a new paragraph.

You typeShown as
# Limits to ###### LimitsA heading, one level for each #
- 3.3 V rail or * 3.3 V railA bulleted list item
1. Enable the regulatorA numbered list item. The list counts from the first number.
> Per the supplier's note.A quote
--- or *** on its own lineA horizontal rule
[datasheet](https://example.com/tps.pdf)A link labelled datasheet
![pinout](https://example.com/pins.png)For now, a link to the image labelled pinout

Code blocks

Three backticks on their own line start a code block, and three more end it. A word after the opening backticks names the language, shown in the block's corner. Nothing inside is formatted, and nothing inside is a cite.

```c
#define PWR_EN_N  (1u << 3)
```

A mermaid, plantuml or wavedrom block is kept for diagrams. For now it is shown as code, and in the tree's tooltip as one line, such as Mermaid diagram. A line such as +------+------+ starts a block that is shown exactly as typed, up to the next blank line. These lines are kept for tables with merged cells.

Display maths

A line holding only $$ starts an expression shown on its own lines, and the next such line ends it. A code block with the language math does the same.

$$
V_{out} = V_{ref}\left(1 + \frac{R_1}{R_2}\right)
$$

In the tree

Hovering a row's body mark shows the first ten lines of the body that are not blank, with every block at one size and headings in bold. When there is more, the last line says how many lines were left out.

Cited in

When a requirement, verification or run is cited in written text, its page lists where under Cited in, with a count. A requirement's pane shows it after Verifications; a verification's page shows it at the end; a run's page shows it below the rows. When nothing cites it, the section is not shown.

Each place that cites it is one block, headed by that requirement, verification or run. Under the heading, each field that cites it is labelled the way the workspace labels it elsewhere, with the words around each mention:

HW-1Power supply

Statement: …from a 12 V input, with inrush current limited as in HW-4

Mapping to VERIF-PWR: …with the electronic load at 2 A, after the HW-4 soft-start has finished…

The heading opens that page. The cited field is briefly highlighted when it opens, and scrolled into view if needed. When the cite is in a mapping's notes or a run row's notes, the link's address names that row (ending #map-VERIF-PWR or #row-HW-4), so a copy of it, a reload, or Back and Forward open the page at the same row. The first 10 places are shown; Show all, with the total, shows the rest.

What counts

Only text in its current form counts. These are the places a cite is collected from:

TextShown as
A requirement's statement and bodyStatement, Body
The latest committed version of a verification's descriptionDescription
An open mapping's notesMapping to VERIF-PWR, or Mapping to HW-3
A run's contentContent
A run row's notesRow HW-12