README.md
# MdDoctest
[![ci](https://github.com/clszzyh/md_doctest/workflows/ci/badge.svg)](https://github.com/clszzyh/md_doctest/actions)
[![Hex.pm](https://img.shields.io/hexpm/v/md_doctest)](http://hex.pm/packages/md_doctest)
[![Hex.pm](https://img.shields.io/hexpm/dt/md_doctest)](http://hex.pm/packages/md_doctest)
[![Documentation](https://img.shields.io/badge/hexdocs-latest-blue.svg)](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).