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-icinga-1.1.0 vendor/jruby/1.9/gems/kramdown-1.13.2/doc/options.page
logstash-output-icinga-1.1.0 vendor/jruby/2.3.0/gems/kramdown-1.13.2/doc/options.page
kramdown-1.15.0 doc/options.page
logstash-filter-cache-redis-0.3.1 vendor/bundle/jruby/1.9/gems/kramdown-1.14.0/doc/options.page
logstash-filter-cache-redis-0.3.0 vendor/bundle/jruby/1.9/gems/kramdown-1.14.0/doc/options.page
logstash-filter-cache-redis-0.2.0 vendor/bundle/jruby/1.9/gems/kramdown-1.14.0/doc/options.page
logstash-filter-cache-redis-0.1.0 vendor/bundle/jruby/1.9/gems/kramdown-1.14.0/doc/options.page
kramdown-1.14.0 doc/options.page
logstash-filter-csharp-0.1.0 vendor/bundle/jruby/2.3.0/gems/kramdown-1.13.2/doc/options.page
logstash-filter-htmlentities-0.1.0 vendor/bundle/jruby/1.9/gems/kramdown-1.13.2/doc/options.page
logstash-output-icinga-1.0.0 vendor/jruby/1.9/gems/kramdown-1.13.2/doc/options.page
enju_leaf-1.2.1 vendor/bundle/ruby/2.3/gems/kramdown-1.13.2/doc/options.page
logstash-filter-zabbix-0.1.2 vendor/bundle/jruby/1.9/gems/kramdown-1.13.2/doc/options.page
logstash-filter-zabbix-0.1.1 vendor/bundle/jruby/1.9/gems/kramdown-1.13.2/doc/options.page
logstash-input-fifo-0.9.1 vendor/bundle/jruby/1.9/gems/kramdown-1.13.2/doc/options.page
logstash-input-fifo-0.9.0 vendor/bundle/jruby/1.9/gems/kramdown-1.13.2/doc/options.page
logstash-input-salesforce-3.0.0 vendor/jruby/1.9/gems/kramdown-1.13.2/doc/options.page
kramdown-1.13.2 doc/options.page
ivanvc-logstash-input-s3-3.1.1.4 vendor/local/gems/kramdown-1.13.1/doc/options.page
ivanvc-logstash-input-s3-3.1.1.3 vendor/local/gems/kramdown-1.13.1/doc/options.page