lib/kramdown/options.rb in kramdown-0.13.7 vs lib/kramdown/options.rb in kramdown-0.13.8
- old
+ new
@@ -241,10 +241,20 @@
Default: 1
Used by: HTML converter
EOF
+ define(:enable_coderay, Boolean, true, <<EOF)
+Use coderay for syntax highlighting
+
+If this option is `true`, coderay is used by the HTML converter for
+syntax highlighting the content of code spans and code blocks.
+
+Default: true
+Used by: HTML converter
+EOF
+
define(:coderay_wrap, Symbol, :div, <<EOF)
Defines how the highlighted code should be wrapped
The possible values are :span, :div or nil.
@@ -292,11 +302,11 @@
Default: style
Used by: HTML converter
EOF
define(:coderay_default_lang, Symbol, nil, <<EOF)
-Sets the default language for highlighting.
+Sets the default language for highlighting code blocks
If no language is set for a code block, the default language is used
instead. The value has to be one of the languages supported by coderay
or nil if no default language should be used.
@@ -357,11 +367,11 @@
Defines the LaTeX commands for different header levels
The commands for the header levels one to six can be specified by
separating them with commas.
-Default: section,subsection,subsubsection,paragraph,subparagraph,subsubparagraph
+Default: section,subsection,subsubsection,paragraph,subparagraph,subparagraph
Used by: Latex converter
EOF
simple_array_validator(val, :latex_headers, 6)
end
@@ -397,9 +407,20 @@
If this option is `true`, the RemoveHtmlTags converter removes
span HTML tags.
Default: false
Used by: RemoveHtmlTags converter
+EOF
+
+ define(:header_offset, Integer, 0, <<EOF)
+Sets the output offset for headers
+
+If this option is c (may also be negative) then a header with level n
+will be output as a header with level c+n. If c+n is lower than 1,
+level 1 will be used. If c+n is greater than 6, level 6 will be used.
+
+Default: 0
+Used by: HTML converter, Kramdown converter, Latex converter
EOF
end
end