kramdown / parser-gfm

kramdown-parser-gfm provides a kramdown parser for the GFM dialect of Markdown
Other
56 stars 14 forks source link

ArgumentError: Option name hard_wrap is already used #3

Closed ashmaroli closed 5 years ago

ashmaroli commented 5 years ago

Running rake tasks get aborted with the following:


$ rake
rake aborted!
ArgumentError: Option name hard_wrap is already used
~/parser-gfm/lib/kramdown/parser/gfm.rb:16:in `<module:Options>'
~/parser-gfm/lib/kramdown/parser/gfm.rb:14:in `<module:Kramdown>'
~/parser-gfm/lib/kramdown/parser/gfm.rb:13:in `<top (required)>'
~/parser-gfm/Rakefile:7:in `require_relative'
~/parser-gfm/Rakefile:7:in `<top (required)>'
(See full trace by running task with --trace)
gettalong commented 5 years ago

That is expected since these repos depend on kramdown 2.0.

ashmaroli commented 5 years ago

Sucks to have the rake tasks crippled till kramdown-2.0 ships.. :disappointed:

gettalong commented 5 years ago

Maybe, but this repo/gem is only useful once 2.0 is released.

ashmaroli commented 5 years ago

That's true. But since the kramdown-core project is no longer accepting PRs to this module, this repository should be able to continue its development and have tests run alongside to catch bugs and regressions.

I can think of using a @options.delete(GFM_OPTION_KEYS) hack inside Options.define to circumvent this knot for the time-being though....

gettalong commented 5 years ago

If you use the pre-release version of kramdown, it should work now!