Packages

Earmark is a pure-Elixir Markdown converter. It is intended to be used as a library (just call Earmark.as_html), but can also be used as a command-line tool (run mix escript.build first). Output generation is pluggable.

Retired package: Deprecated - Earmark is no longer maintained. Migrate to a replacement, for example MDEx (https://hex.pm/packages/mdex).

Current section

Files

Jump to
earmark mix.exs
Raw

mix.exs

defmodule Earmark.Mixfile do
use Mix.Project
@version "1.2.6"
@deps [
{ :credo, "~> 0.8", only: [ :dev, :test ] },
{ :dialyxir, "~> 0.5", only: [ :dev, :test ] },
]
@description """
Earmark is a pure-Elixir Markdown converter.
It is intended to be used as a library (just call Earmark.as_html),
but can also be used as a command-line tool (run mix escript.build
first).
Output generation is pluggable.
"""
############################################################
def project do
[
app: :earmark,
version: @version,
elixir: "~> 1.4",
elixirc_paths: elixirc_paths(Mix.env),
escript: escript_config(),
deps: @deps,
description: @description,
package: package(),
aliases: [docs: &docs/1, readme: &readme/1]
]
end
def application do
[
applications: []
]
end
defp package do
[
files: [
"lib", "src/*.xrl", "src/*.yrl", "tasks", "mix.exs", "README.md"
],
maintainers: [
"Robert Dober <robert.dober@gmail.com>",
"Dave Thomas <dave@pragdave.me>"
],
licenses: [
"Apache 2 (see the file LICENSE for details)"
],
links: %{
"GitHub" => "https://github.com/pragdave/earmark",
}
]
end
defp escript_config do
[ main_module: Earmark.CLI ]
end
defp elixirc_paths(:test), do: [ "lib", "test/support" ]
defp elixirc_paths(_), do: [ "lib" ]
defp docs(args) do
Code.load_file "tasks/docs.exs"
Mix.Tasks.Docs.run(args)
end
defp readme(args) do
Code.load_file "tasks/readme.exs"
Mix.Tasks.Readme.run(args)
end
end
# SPDX-License-Identifier: Apache-2.0