Sha256: 55af1278271855b3e94b9f3eb5a3a42ffc72914e2bb9439bfe3cfdd3e1038bc1

Contents?: true

Size: 1.37 KB

Versions: 88

Compression:

Stored size: 1.37 KB

Contents

---
title: Options
---
## Options

The behaviour of kramdown can be adjusted via the available options.

Options can be specified in multiple ways:

On the command line
: The `kramdown` binary allows setting any option by using command line switches.

  For example, the following command will disable automatic header ID generation and defines the
  first footnote number as 5:

  ~~~
  $ kramdown --no-auto-ids --footnote-nr 5
  ~~~

  As you can see all underscores in option names have to be replaced with dashes. The built-in help
  of the binary as well as the man-page show all available options.

Within a kramdown document
: By using the special extension syntax, it is possible to set options within a document.

  Using the above example, the options would be set like this within a document:

  ~~~
  {::options auto_ids="false" footnote_nr="5" /}
  ~~~

Using Ruby code

: If you are using kramdown as a library, you can pass any options as second parameter to the
  `Kramdown::Document.new` method.

  Again, using the above example you would initalize the kramdown document class as follows:

  ~~~ ruby
  Kramdown::Document.new(source_text, \{auto_ids: false, footnote_nr: 5})
  ~~~


## Available Options

Below is a list of all currently available options. Have a look at the documentation of a converter
or parser to see directly which options they support!

{options: {items: all}}

Version data entries

88 entries across 84 versions & 21 rubygems

Version Path
logstash-output-scalyr-0.1.9 vendor/bundle/jruby/2.5.0/gems/kramdown-1.14.0/doc/options.page
logstash-output-scalyr-0.1.8 vendor/bundle/jruby/2.5.0/gems/kramdown-1.14.0/doc/options.page
logstash-output-scalyr-0.1.7 vendor/bundle/jruby/2.5.0/gems/kramdown-1.14.0/doc/options.page
logstash-output-scalyr-0.1.6 vendor/bundle/jruby/2.5.0/gems/kramdown-1.14.0/doc/options.page
logstash-output-newrelic-1.2.0 vendor/bundle/jruby/2.5.0/gems/kramdown-1.14.0/doc/options.page
logstash-filter-csharp-0.2.1 vendor/bundle/jruby/2.3.0/gems/kramdown-1.13.2/doc/options.page
logstash-filter-csharp-0.2.1 vendor/bundle/jruby/2.5.0/gems/kramdown-1.14.0/doc/options.page
logstash-filter-csharp-0.2.0 vendor/bundle/jruby/2.3.0/gems/kramdown-1.13.2/doc/options.page
logstash-filter-csharp-0.2.0 vendor/bundle/jruby/2.5.0/gems/kramdown-1.14.0/doc/options.page
logstash-output-scalyr-0.1.5 vendor/bundle/jruby/2.5.0/gems/kramdown-1.14.0/doc/options.page
logstash-output-scalyr-0.1.4 vendor/bundle/jruby/2.5.0/gems/kramdown-1.14.0/doc/options.page
logstash-output-scalyr-0.1.3 vendor/bundle/jruby/2.5.0/gems/kramdown-1.14.0/doc/options.page
files.com-1.0.55 docs/vendor/bundle/ruby/2.5.0/gems/kramdown-1.17.0/doc/options.page
logstash-output-scalyr-0.1.2 vendor/bundle/jruby/2.5.0/gems/kramdown-1.14.0/doc/options.page
logstash-filter-device_detection-1.0.7-java vendor/bundle/jruby/1.9/gems/kramdown-1.14.0/doc/options.page
mrcooper-logstash-output-azuresearch-0.2.2 vendor/jruby/2.5.0/gems/kramdown-1.14.0/doc/options.page
kramdown-1.17.0 doc/options.page
kramdown-1.16.2 doc/options.page
kramdown-1.16.1 doc/options.page
kramdown-1.16.0 doc/options.page