Skip to content

Commit

Permalink
Fixes: #337 i337-ast-metadata
Browse files Browse the repository at this point in the history
  • Loading branch information
RobertDober committed Jun 28, 2020
1 parent 5d5202f commit afe027c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/earmark/transform.ex
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ defmodule Earmark.Transform do
verbatim = meta |> Map.get(:verbatim, false)
[ make_indent(options, level),
open_tag("pre", atts),
_to_html(children, options, level, verbatim),
_to_html(children, Map.put(options, :smartypants, false), level, verbatim),
"</pre>\n"]
end
defp _to_html({tag, atts, children, meta}, options, level, _verbatim) do
Expand All @@ -74,7 +74,7 @@ defmodule Earmark.Transform do
element1 =
element
|> smartypants(options)
|> Earmark.Helpers.escape()
|> Earmark.Helpers.escape(true)
[make_indent(options, level), element1, "\n"]
end

Expand Down

0 comments on commit afe027c

Please sign in to comment.