Defines a kramdown block tag that processes
Kramdown (a flavor of Markdown) embedded in
HTML files.
This plugin uses the facilities of the
kramdown plugin, which can be relatively slow.
Installation
Add the following to your Jekyll website's Gemfile:
group :jekyll_plugins do
gem 'jekyll_kramdown'
endAnd then execute:
$ bundleOptions
Invocation options
The available options for the kramdown block tag are:
-
classWrap the output in a div with this class -
no_auto_idsDo not generateidtags -
hard_wrapEnable GitHub wrapping default -
input=GFMSpecify flavor of markdown (case sensitive) -
math_engine=katexSpecify math engine (case senstitive) -
maxOneScreenHighWrap the output in a div with class maxOneScreenHigh -
style='padding: 1em;'Wrap the output in a div with this style -
syntax_highlighter=rougeSpecify highligher (case sensitive)
Here they are all used together:
{% kramdown no_auto_ids hard_wrap maxOneScreenHigh table-container
input=GFM
math_engine=katex
syntax_highlighter=rouge %}
## Subheading here
- This is a perfectly good point
- YAP (yet another point)
{% href label='This link was generated by a Jekyll Support plugin.'
url='https://www.mslinn.com/jekyll_plugins' %}
{% endkramdown %}The above example shows the
jekyll_href tag plugin
being used within kramdown text, which was embedded in an HTML page.
Document Options
Kramdown options can be specified in the content to some degree and with some fussing.
Usage
Add the following in any HTML file within a Jekyll project:
{% kramdown %}
## Heading
Some text
- option 1
- option 2
{% endkramdown %}Modify _config.yaml to set kramdown options:
kramdown:
input: GFM
hard_wrap: false
markdown: kramdownDevelopment
After checking out this git repository, install dependencies by typing:
$ bin/setupYou should do the above before running Visual Studio Code.
Run the Tests
$ bundle exec rake testInteractive Session
The following will allow you to experiment:
$ bin/consoleLocal Installation
To install this gem onto your local machine, type:
$ bundle exec rake installTo Release A New Version
To create a git tag for the new version, push git commits and tags, and push the new version of the gem to the Gem server, type:
$ bundle exec rake releaseContributing
Bug reports and pull requests are welcome at https://github.com/mlinn/jekyll_kramdown.
License
The gem is available as open source under the terms of the MIT License.