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 requirements, verifications and runs. A requirement's body and a verification's description can also hold headings, lists, quotes, tables, code blocks, diagrams and display maths (see Blocks in a body or a description). Each form with a formatted field has a one-line reminder under it.
Where it applies
| Field | Formatting |
|---|---|
| Requirement body | All of it, and blocks |
| Requirement statement | All of it except blocks |
| Verification description | All of it, and blocks |
| Mapping notes | All of it |
| Run record, and a run row's notes | All of it |
| List description | All of it except cites: HW-3 stays as text |
| Titles and names (requirement, list, verification) | Maths, code and backslash escapes only |
| Run notes | None. They are only ever shown in their edit box. |
Bold, italic and code
| You type | Shown as |
|---|---|
**shall not** | shall not |
*nominal* | nominal |
`PWR_CTRL[3]` | PWR_CTRL[3] |
`**not bold**` | **not bold** |
- Only
*marks emphasis._is an ordinary character, soPWR_EN_Nneeds no escaping. - Inside backticks everything is literal: no emphasis, maths, links or cites. Use code for register names, pin names and values copied from a datasheet.
- Formatting does not carry across a blank line. An unclosed
**before a blank line is shown as typed.
Maths
Text between single dollar signs is typeset as TeX, using KaTeX.
| You type | Shown as |
|---|---|
$\tau = RC$ | |
$I_{max} \le 2\,\mathrm{A}$ | |
$V_{out} = V_{ref}\left(1 + \frac{R_1}{R_2}\right)$ |
The app draws these with KaTeX's own fonts, so they look a little different there from this page.
- The opening
$must be followed by something other than a space, and the closing one must follow something other than a space and must not be followed by a digit. Socosts $5 and $10stays as text. - Two dollar signs together are never maths on a line with other text:
$$x$$is shown as typed. In a body, a line holding only$$starts display maths. \$is a literal dollar sign.- Inside maths, a backslash is TeX's:
$\{a\}$shows braces. - An expression may run over a line break, but not over a blank line.
- An expression KaTeX cannot read is shown as a small red LaTeX error. Hover over it for KaTeX's message.
- In the tree's filter, an expression is matched as its TeX source, so
fracfinds$\frac{a}{b}$.
Links
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 a requirement, verification or run that exists becomes a link to it, drawn with its current status:
| You type | Shown 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. |
- A cite is a run of capital letters, digits and hyphens, optionally followed by
:RUN-and a number, with no letter, digit or hyphen directly before or after it. A hyphen at the end is ignored. - It becomes a link only if it names a requirement, verification or run that exists now. A list code stays as text, even when that list exists. A verification id with no hyphen, such as
EMC, still links. Anything else, such asISO-9001, a deleted requirement, or a lower-casehw-3, stays as text. - If a requirement and a verification have the same id, the requirement wins.
- The cite always shows the current status, so a cite written months ago reads correctly today. A run's cite in text is not faded when a later run has replaced it.
Backslash escapes
| You type | Shown as |
|---|---|
\*not italic\* | *not italic* |
Unlike \HW-3, this | Unlike HW-3, this |
C:\temp | C:\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 or a description
A requirement's body and a verification's description are 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, quotes and table cells. A line ending inside a paragraph is shown as a line break, and a blank line starts a new paragraph.
| You type | Shown as |
|---|---|
# Limits to ###### Limits | A heading, one level for each # |
- 3.3 V rail or * 3.3 V rail | A bulleted list item |
1. Enable the regulator | A numbered list item. The list counts from the first number. |
> Per the supplier's note. | A quote |
--- or *** on its own line | A horizontal rule |
[datasheet](https://example.com/tps.pdf) | A link labelled datasheet |
 | For now, a link to the image labelled pinout |
- Every heading is the size of the text around it, in the requirement pane, on a requirement's page and in a procedure. Levels are told apart by weight, colour and a rule under
#, so a heading never looks like the requirement's or verification's own title. - A list item's marker needs a space after it and text on the same line. A line indented past the marker belongs to the item: indent a
-under it to nest a list. - Every line of a quote starts with
>. A blank line ends it. - There are no headings made by underlining with
===. A line of---under text is a rule. - A link goes to an
http://orhttps://address. An image may also give a path on this site, such as/files/pins.png, and a title in double quotes after it.
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.
Blocks in these languages are coloured. Comments, keywords, strings and numbers each get a colour. The stored text is exactly what was typed, and copying the block copies that.
| Language | Names after the backticks |
|---|---|
| C and C++ | c h cpp c++ cc cxx hpp |
| Python | python py |
| Rust | rust rs |
| Shell | sh bash shell |
| Verilog and SystemVerilog | v sv verilog systemverilog |
| VHDL | vhdl |
| JSON, SQL, YAML | json sql yaml yml |
Any other language is shown in one colour. A mermaid or plantuml block is drawn as a diagram (below), and a wavedrom block is kept for later and shown as code for now.
```c
/* Enable the 3V3 rail. */
if (state == 1) {
log("rail");
}
```
/* Enable the 3V3 rail. */
if (state == 1) {
log("rail");
}
Inline code, the tree's tooltip and the editor's Markdown view are never coloured.
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.
Diagrams
A code block with the language mermaid is drawn as a Mermaid diagram. The block's text is the diagram's source, and the source is what is saved: the drawing is made again each time it is shown.
```mermaid
stateDiagram-v2
[*] --> Idle
Idle --> Charging: plug in
Charging --> Fault: over temperature
Fault --> Idle: reset
```
- BreezeBlock is tested with state machines (
stateDiagram-v2), sequences (sequenceDiagram), flowcharts (flowchart) and block diagrams (block, or the olderblock-beta). Mermaid's other kinds are drawn too, but not tested. - A diagram is drawn in the app's own font and greys, at its own size, unless its source sets colours of its own (
style,classDef). One wider than the space it has scrolls sideways. - If Mermaid cannot read the source, the block stays as code with a small red Mermaid error in its corner. Hover over it for Mermaid's message. The same happens if Mermaid would draw any of the diagram's text as HTML, which BreezeBlock does not show.
click A href "https://example.com/spec"makes nodeAa link, which opens in a new tab. Onlyhttp://andhttps://addresses and paths on this site are kept.click A call …does nothing, and nothing in a diagram can run code or load a file from elsewhere.- The text in a diagram is Mermaid's, not BreezeBlock's: maths is not typeset, and a requirement's id is plain text that does not count under Cited in.
- In the body editor a diagram is drawn in place. Click it to edit its source. The drawing under the source is redrawn when you stop typing for a moment.
- Diagrams are drawn by Mermaid 12.1.0, and its documentation describes the syntax. A later version of Mermaid may lay out the same source a little differently.
PlantUML diagrams
A code block with the language plantuml is drawn as a PlantUML diagram. PlantUML has timing, state, sequence and component diagrams, among others, which suit hardware and firmware. It runs on BreezeBlock's own server, which reaches nothing outside it. As for Mermaid, the source is what is saved.
```plantuml
@startuml
clock "SCLK" as clk with period 1
binary "CS" as cs
concise "MOSI" as mosi
@0
cs is high
mosi is idle
@1
cs is low
mosi is "0xA5"
@5
cs is high
mosi is idle
@enduml
```
- The
@startumland@endumllines are optional: a block without them is read as if they were there. Other kinds start with their own line, such as@startmindmapor@startjson. Only the first@start…to@end…part of a block is drawn. - Timing, state, sequence, use case, class, object, activity, component and deployment diagrams, and mind maps, work breakdowns, Gantt charts, JSON, YAML, network diagrams, EBNF, regular expressions and entity relationship diagrams, are drawn in the app's own font and greys. Wireframes (
@startsalt), wires (@startwire), git graphs, boards, and formulas (@startmath,@startlatex) keep PlantUML's own look, on a white ground in either theme. A wireframe needs its own@startsaltand@endsaltlines. - Some kinds are not drawn, and the block says why:
ditaadiagrams, which PlantUML draws only as images;@startdot, which this server turns off; and kinds this release of PlantUML does not have, such as@startchronology. - Your own colours win:
skinparam, a<style>block,!theme, or a colour on one element. They are drawn as you wrote them, so a colour picked for a light page is not changed for the dark theme. - If PlantUML cannot read the source, the block stays as code with a small red PlantUML error in its corner. Hover over it for PlantUML's message and the line it is on. The same label says when a drawing is larger than 256 KiB, or took longer than ten seconds.
!includeand!includeurlread nothing: every diagram is its own source.- A diagram already drawn comes back at once. A new one takes a moment, and after a short wait a small ring in its corner shows it is being drawn. Each person can have 60 new diagrams drawn a minute. If the server is busy the block says PlantUML busy; it is drawn again the next time the page is opened.
- Diagrams are drawn by PlantUML 1.2026.9, and its documentation describes the syntax.
In the tree's tooltip a diagram is one line, such as Mermaid diagram or PlantUML diagram.
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)
$$
Tables
A table is a header row, a row of dashes under it, and then its rows. | separates the cells.
| Rail | Min | Max | Notes |
|:-----|-----:|-----:|--------------------|
| 3V3 | 3.20 | 3.40 | At 2 A, see HW-2 |
| 1V8 | 1.71 | 1.89 | Ripple $< 20$ mV |
- A colon in the row of dashes sets a column's alignment:
:--left,--:right,:-:centred. A column without one is left-aligned. - A cell can hold bold, italic, code, maths, links and cites. A cite in a cell counts under Cited in, and the words around it there are the rest of its row.
- To put a
|in a cell, type\|. This holds inside backticks and maths too, because a row is split into cells before anything else is read. In TeX, write a double bar as\Vert. - The header and the row of dashes must have the same number of cells. If they do not, neither is a table, and both are shown as text.
- A row with fewer cells than the header gets empty ones. A row with more widens the table; nothing you type is dropped.
- A table ends at a blank line, at a line with no
|, or at a line that starts another block, such as a list item. - Start and end every row with
|. Then lining the columns up with spaces is not a change to the requirement: history shows it as spacing only, and saving it never asks whether the change affects a verified result. - A cell cannot span two columns or two rows.
A table is as wide as its text needs, and a long cell wraps. A table wider than its column scrolls sideways in its own box. From the keyboard, Tab to it and use the arrow keys.
A requirement has one status, however much its body holds. If its body is a table of twenty limits and one limit fails, the requirement fails, and the status does not say which limit. Record which rows passed and which failed in the run row's notes, or make each limit a child requirement so that each has a status of its own.
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. A table shows one line per row, cut off at the tooltip's edge, and its row of dashes is not counted. 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 Verified by; 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 app 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:
| Text | Shown as |
|---|---|
| A requirement's statement and body | Statement, Body |
| The latest committed version of a verification's description | Description |
| An open mapping's notes | Mapping to VERIF-PWR, or Mapping to HW-3 |
| A run's record | Record |
| A run row's notes | Row HW-4 |
- Not counted: drafts, older versions, notes on closed mappings, run notes, and list descriptions (which draw no cites).
- In a body, a cite inside a code block, a diagram block, display maths, a link's label or an image's text does not count.
- Lists are never shown as cited, though a list's code in text still links to it.
- A page does not list itself. A requirement whose statement or body mentions its own cite, or a mapping's notes citing either end of that mapping, do not appear under Cited in.
- A run's page shows the description of the version it used and the notes of every mapping it included, with working links. If that version is no longer the latest, or the mapping is closed, those cites do not count: otherwise one sentence would be listed once for every run that used it.
- Creating a requirement makes earlier text that already cites its id count straight away.