Skip to content

Commit c409862

Browse files
authored
Merge pull request #685 from code-corps/682-upgrade-earmark
Update earmark
2 parents b384251 + 2c64755 commit c409862

File tree

3 files changed

+3
-4
lines changed

3 files changed

+3
-4
lines changed

lib/code_corps/services/markdown_renderer.ex

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,7 @@ defmodule CodeCorps.Services.MarkdownRendererService do
1616

1717
@spec convert_into_html(String.t) :: String.t
1818
defp convert_into_html(markdown) do
19-
# `Earmark.as_html` will return `{html, errors}`
20-
markdown |> Earmark.as_html() |> Tuple.to_list() |> List.first()
19+
Earmark.as_html!(markdown)
2120
end
2221

2322
@spec put_into(String.t, Changeset.t, atom) :: Changeset.t

mix.exs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ defmodule CodeCorps.Mixfile do
7777
{:comeonin, "~> 2.0"},
7878
{:corsica, "~> 0.4"}, # CORS
7979
{:credo, "~> 0.5", only: [:dev, :test]}, # Code style suggestions
80-
{:earmark, "~> 1.0"}, # Markdown rendering
80+
{:earmark, "~> 1.1"}, # Markdown rendering
8181
{:ex_aws, "~> 1.0"}, # Amazon AWS
8282
{:excoveralls, "~> 0.5", only: :test}, # Test coverage
8383
{:ex_doc, "~> 0.14", only: [:dev, :test]},

mix.lock

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
"db_connection": {:hex, :db_connection, "1.1.0", "b2b88db6d7d12f99997b584d09fad98e560b817a20dab6a526830e339f54cdb3", [:mix], [{:connection, "~> 1.0.2", [hex: :connection, optional: false]}, {:poolboy, "~> 1.5", [hex: :poolboy, optional: true]}, {:sbroker, "~> 1.0", [hex: :sbroker, optional: true]}]},
2020
"decimal": {:hex, :decimal, "1.3.1", "157b3cedb2bfcb5359372a7766dd7a41091ad34578296e951f58a946fcab49c6", [:mix], []},
2121
"dialyxir": {:hex, :dialyxir, "0.4.3", "a4daeebd0107de10d3bbae2ccb6b8905e69544db1ed5fe9148ad27cd4cb2c0cd", [:mix], []},
22-
"earmark": {:hex, :earmark, "1.1.0", "8c2bf85d725050a92042bc1edf362621004d43ca6241c756f39612084e95487f", [:mix], []},
22+
"earmark": {:hex, :earmark, "1.1.1", "433136b7f2e99cde88b745b3a0cfc3fbc81fe58b918a09b40fce7f00db4d8187", [:mix], []},
2323
"ecto": {:hex, :ecto, "2.1.3", "ffb24e150b519a4c0e4c84f9eabc8587199389bc499195d5d1a93cd3b2d9a045", [:mix], [{:db_connection, "~> 1.1", [hex: :db_connection, optional: true]}, {:decimal, "~> 1.2", [hex: :decimal, optional: false]}, {:mariaex, "~> 0.8.0", [hex: :mariaex, optional: true]}, {:poison, "~> 2.2 or ~> 3.0", [hex: :poison, optional: true]}, {:poolboy, "~> 1.5", [hex: :poolboy, optional: false]}, {:postgrex, "~> 0.13.0", [hex: :postgrex, optional: true]}, {:sbroker, "~> 1.0", [hex: :sbroker, optional: true]}]},
2424
"ecto_ordered": {:hex, :ecto_ordered, "0.2.0-beta1", "cb066bc608f1c8913cea85af8293261720e6a88e3c99061e6877d7025352f045", [:mix], [{:ecto, "~> 2.0", [hex: :ecto, optional: false]}]},
2525
"ex_aws": {:hex, :ex_aws, "1.0.0", "509368ffbd38b405faefda95eb30012fc7b791fad6574ef427cc4ad0f4f5b533", [:mix], [{:configparser_ex, "~> 0.2.1", [hex: :configparser_ex, optional: true]}, {:gen_stage, "~> 0.8.0", [hex: :gen_stage, optional: false]}, {:hackney, "1.6.1", [hex: :hackney, optional: true]}, {:jsx, "~> 2.8", [hex: :jsx, optional: true]}, {:poison, ">= 1.2.0", [hex: :poison, optional: true]}, {:sweet_xml, "~> 0.5", [hex: :sweet_xml, optional: true]}]},

0 commit comments

Comments
 (0)