README.md
# MdDoctest
[](https://github.com/clszzyh/md_doctest/actions)
[](http://hex.pm/packages/md_doctest)
[](http://hex.pm/packages/md_doctest)
[](https://hexdocs.pm/md_doctest/readme.html)
<!-- MDOC -->
Markdown code block to elixir doctest
<!-- MDOC -->
```elixir
a = 2
b = 3
a + b
## => 5
a = 2
b = 3
a
## => 2
```
```elixir
1 + 1
## => 2
```
<!-- MDOC -->
## Installation
If [available in Hex](https://hex.pm/docs/publish), the package can be installed
by adding `md_doctest` to your list of dependencies in `mix.exs`:
```elixir
def deps do
[
{:md_doctest, "~> 0.1.0"}
]
end
```
Documentation can be generated with [ExDoc](https://github.com/elixir-lang/ex_doc)
and published on [HexDocs](https://hexdocs.pm). Once published, the docs can
be found at [https://hexdocs.pm/md_doctest](https://hexdocs.pm/md_doctest).