Skip to content

Commit

Permalink
Remove plugins from Earmark config options (#1113)
Browse files Browse the repository at this point in the history
With #1109 the Earmark
dependency was set to `~> 1.4`

Earmark 1.4 no longer supports plugins see (https://github.com/pragdave/earmark/blob/master/RELEASE.md#140-20190905)
so setting this option through `ex_doc` is not possible anymore.
  • Loading branch information
maartenvanvliet authored and José Valim committed Dec 1, 2019
1 parent 8c80006 commit 5026bd0
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions lib/ex_doc/markdown/earmark.ex
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,6 @@ defmodule ExDoc.Markdown.Earmark do
* `:smartypants` - boolean. Turns on smartypants processing, so quotes become curly,
two or three hyphens become en and em dashes, and so on. False by default
* `:plugins` - map of strings to modules. Register custom plugins to be used with
Earmark. See [Plugins](http://github.com/pragdave/earmark#plugins) for details on
how to write custom plugins.
* `:highlight_tag` - the tag used for highlighting code, defaults to "span"
"""
Expand All @@ -39,8 +35,7 @@ defmodule ExDoc.Markdown.Earmark do
file: Keyword.get(opts, :file),
breaks: Keyword.get(opts, :breaks, false),
smartypants: Keyword.get(opts, :smartypants, false),
pure_links: true,
plugins: Keyword.get(opts, :plugins, %{})
pure_links: true
)

text
Expand Down

0 comments on commit 5026bd0

Please sign in to comment.