MdDoctest

ci Hex.pm Hex.pm Documentation

Markdown code block to elixir doctest

a = 2
b = 3
a + b
## => 5

a = 2
b = 3
a
## => 2
1 + 1
## => 2

Installation

If available in Hex, the package can be installed by adding md_doctest to your list of dependencies in mix.exs:

def deps do
  [
    {:md_doctest, "~> 0.1.0"}
  ]
end

Documentation can be generated with ExDoc and published on HexDocs. Once published, the docs can be found at https://hexdocs.pm/md_doctest.