Leo has an elixir mode, so you could use it with
@language elixir
Are you already doing this? It will let you emit an
@adoc. I tried it using an example I found at the ebook
Learning Elixir Language. Here is the content of my
@clean node for the example:
@language elixir
defmodule MyModule do
@doc """
Given a number, returns `true` if the number is even, otherwise `false`.
## Example
iex> MyModule.even?(2)
true
iex> MyModule.even?(3)
false
"""
def even?(number) do
rem(number, 2) == 0
end
end
The external file that Leo created seems to be exactly what you want. I have attached it.