# Glossaries and directories written in Markdown

**Récit directory** reads two kinds of lists of named entries written in Markdown. A **glossary**:
each `## heading` a term, the paragraph under it its definition, shown A–Z with its alphabet rail («
É » under « E ») or by section, each term linked from any story with `:term`. A **directory**: an
"awesome" list read as it is, each item an entry, shown as cards, a list or a table, filtered by
category, tag and city in the address.

## A directory

The list below is a raw awesome list, with no braces: the categories are its headings, the entries
its items. The filters are in the address, so a filtered view is a link to share.

<StoryEmbed slug="directory/links" format="directory" />

## A glossary

The [Lorem glossary](/directory/glossary) reads its terms A–Z with an alphabet rail, in English and
in French, each term with its anchor and its page; any story links a word to it with `:term`.

<details>
<summary>The Markdown source of this glossary</summary>

<SourceFile deck="glossary" title="examples/glossary-lorem/stories/glossary.md" />

</details>

## Places

The same format with addresses and coordinates, written once per language: `places.md` and
`places.fr.md` share their ids, and a long record goes in a `:::entry` block.

<StoryEmbed slug="directory/places" format="directory" />

## The two formats

<FeatureGrid cols={3}>
  <FeatureCard title="A–Z and sections" description="The terms sorted in the language shown, an alphabet rail, an anchor per term, a page per term on request." href="/directory/lorem-glossary" />
  <FeatureCard title="Terms everywhere" description="`:term` links a word to its definition, with a card on hover and on focus, in a deck and in a page." site="docs" href="/documentation/writing/terms" />
  <FeatureCard title="Cards, list, table" description="One awesome list, three views, filters by category, tag, city and country kept in the address." href="/directory/links" />
  <FeatureCard title="Places" description="A structured address and coordinates; a calendar event points to an entry with `location=@id`." href="/directory/places" />
  <FeatureCard title="Link checks" description="`recit validate --links` checks every link, notes a redirection to another domain, and writes the result in the companion." site="docs" href="/formats/directory" />
  <FeatureCard title="Typed JSON twin" description="The same glossary or directory in JSON, checked by the schema, convertible both ways, and from a CSV." site="docs" href="/formats/glossary" />
</FeatureGrid>

## Start a glossary or a directory

```bash
npx recit init glossary.md --format glossary
npx recit init places.md --format directory
npx recit validate glossary.md places.md
```
