# `Shorthand.Quokka.ShortenMaps`
[🔗](https://github.com/andrewtimberlake/shorthand/blob/1.3.1/lib/shorthand/quokka/shorten_maps.ex#L2)

Quokka plugin that rewrites shortenable maps to `m(...)` / `sm(...)`.

When a rewrite happens in a module that does not yet `import Shorthand`,
the import is added automatically.

Structs and maps inside `quote` blocks are left unchanged — Shorthand
macros cannot appear in quoted AST.

Enable in `.formatter.exs`:

    [
      plugins: [Quokka],
      quokka: [
        plugins: [Shorthand.Quokka.ShortenMaps]
      ]
    ]

---

*Consult [api-reference.md](api-reference.md) for complete listing*
