We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and
privacy statement. We’ll occasionally send you account related emails.
Already on GitHub?
to your account
After having installed kramdown-2.0.0, running kramdown --help doesn't surface options from the extracted gems.
I also used a Gemfile and tried again with bundle exec. Still no success!
gem 'kramdown', '~> 2.0'
$ bundle exec kramdown --help
What should a user do to surface options from kramdown-parser-gem gem in the --help output?
The text was updated successfully, but these errors were encountered:
kramdown automatically loads a parser if it is used. So kramdown -i GFM still works, as would kramdown -o pdf for the PDF converter.
kramdown -i GFM
kramdown -o pdf
I'm open to suggestions for making the options of third-party extensions available to the kramdown binary.
Sorry, something went wrong.
A simple route would be a introducing a new flag say -x, --extension [GEM-NAME, [GEM_NAME_2...]]
Usage would be:
-x, --extension [GEM-NAME, [GEM_NAME_2...]]
$ kramdown -x parser-gfm
# => kramdown options + GFM Parser options
$ kramdown -x parser-gfm, syntax-coderay
# => kramdown options + GFM Parser options + CodeRay options
The binary can abort with an error message if the given extension raises a LoadError exception
I have committed a change which allows specifying extensions. Once specified, the options from the extension can be used with the binary and are shown with the --help option.
No branches or pull requests