# `mix tutorials.check`
[🔗](https://github.com/baoulo/asdf-elixir/blob/v0.1.0/lib/mix/tasks/tutorials.check.ex#L1)

Checks Markdown under `tutorials/`.

Fenced code blocks must be closed. A relative link must point at a file
in the repository. An article whose status is `draft` or `ready` must
not still say `placeholder:`.

# `run`

Checks every Markdown file under `tutorials/`.

`args` is ignored. A closed fence, a relative link that exists, and an
absolute or empty link are accepted. `draft` and `ready` articles that
still contain `placeholder:` are rejected.

Prints `tutorials.check: N files` and returns `:ok` when every file
passes. Otherwise prints one problem per line to stderr and raises
`Mix.Error`.

## Examples

    iex> ExUnit.CaptureIO.capture_io(fn -> Mix.Tasks.Tutorials.Check.run([]) end) =~ "tutorials.check:"
    true

---

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