Skip to content

Commit

Permalink
Document row level headers
Browse files Browse the repository at this point in the history
This requires alphagov/tech-docs-gem#214 to be
released first - the current version of the tech docs template doesn't
support row headers in markdown tables.

Alternatively we could document that you need to use HTML tables to set
row level headings.
  • Loading branch information
richardTowers committed Mar 11, 2021
1 parent 3f13e6c commit 31a8914
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion source/write_docs/content/index.html.md.erb
Original file line number Diff line number Diff line change
Expand Up @@ -37,12 +37,21 @@ You should include `<div style="height:1px;font-size:1px;">&nbsp;</div>` before
<div style="height:1px;font-size:1px;">&nbsp;</div>
```

Add more columns and rows as needed.

You can change the alignment of the text:

- Centre: `|:---:|`
- Right: `|---:|`

Add more columns and rows as needed.
You can create row headings by prefixing the content of the cell with `# `:

```bash
|Column header|Column header|
|:---|:---|
|# Row header|content|
|# Row header|content|
```

### Create table using HTML

Expand Down

0 comments on commit 31a8914

Please sign in to comment.