xwmx / pandoc-ruby

Ruby wrapper for Pandoc
MIT License
340 stars 43 forks source link

It is not compatible with Pandoc's new way of adding/removing extensions #32

Closed mauromorales closed 4 years ago

mauromorales commented 6 years ago

Calling: PandocRuby.new(content, :smart) will raise the following error:

--smart/-S has been removed.  Use +smart or -smart extension instead.
For example: pandoc -f markdown+smart -t markdown-smart.
Try pandoc --help for more information.
$ pandoc --version
pandoc 2.2.1
Compiled with pandoc-types 1.17.4.2, texmath 0.11, skylighting 0.7.1
xwmx commented 4 years ago

Apologies for the delayed response! Extensions can be added to the reader or writer name. For example:

PandocRuby.new("Line 1\n# Heading", from: 'markdown_strict+blank_before_header').to_html

Thanks!