Skip to content

Commit

Permalink
use Earmark.as_html! (#671)
Browse files Browse the repository at this point in the history
Earmark.to_html was [deprecated as of v1.1](pragdave/earmark@8f8a05f).
This changes to use the new `as_html!` which prints any errors to STDERR automatically.
  • Loading branch information
mmmries authored and milmazz committed Feb 13, 2017
1 parent edb0392 commit 79382d1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/ex_doc/markdown/earmark.ex
Expand Up @@ -31,6 +31,6 @@ defmodule ExDoc.Markdown.Earmark do
file: Keyword.get(opts, :file),
breaks: Keyword.get(opts, :breaks, false),
smartypants: Keyword.get(opts, :smartypants, true))
Earmark.to_html(text, options)
Earmark.as_html!(text, options)
end
end
2 changes: 1 addition & 1 deletion mix.exs
Expand Up @@ -21,7 +21,7 @@ defmodule ExDoc.Mixfile do
end

defp deps do
[{:earmark, "~> 1.0"},
[{:earmark, "~> 1.1"},
{:markdown, github: "devinus/markdown", only: :test},
{:cmark, "~> 0.5", only: :test},
{:excoveralls, "~> 0.3", only: :test}]
Expand Down

0 comments on commit 79382d1

Please sign in to comment.