- Add
before_render
andafter_render
hooks, allowing content manipulation. UseKitabu::Markdown.add_hook(event, &block)
. - Add link anchor on each title, so you can display an anchor link on HTML pages.
- Improve epub final file (better table of contents, less epubcheck errors, CSS localization, and more).
- Add support for frontmatter on
.md
and.md.erb
files. - Wrap emoji with
span.emoji
and use a font for emojis so it renders the same in any system. - Update all templates to use h1 as the root heading.
- Remove inline alignment from tables.
- Render
<figure>
for images with title. - Render abbreviations with (e.g.
*[CSS]: Cascading Style Sheets
).
- Add support for
Github's alert syntax.
Kitabu's implementation supports any arbitrary name, so you can use anything
(e.g.
[!ALERT]
).
- Fix Rouge options keys; symbols are required.
- Fix
styles
directory copying.
- Add accessor methods
Kitabu::Markdown.default_renderer_options
andKitabu::Markdown.default_markdown_options
. - Set Redcarpet's
hard_wrap
tofalse
.
- Drop Sass support; the
styles
directory will now be copied to theoutput
directory when exporting files. - Drop support for
html2text
; the output wasn't that good. - Drop support for notifier; this gem is no longer maintained.
- Use calibre to generate mobi files; kindlegen has been deprecated.
- Make it run with modern Ruby.
- Lock Rouge version to ~>2.0.
- Support fonts directory
- Allow having any element as the chapter title (e.g. h1). Previously you could only use h2.
- Bug fix: unknown Rouge lexer was raising an error.
- Bug fix: footnote label wasn't updated with current count
- Bug fix: generate valid HTML markup
- Improve footnote generation
- Remove support for different markdown processors; now using Redcarpet.
- Remove support for other file types like textile and html.
- Remove support for pygments.rb highlighter; now using Rouge.
- Add support for .erb files; helpers can be defined within the
Kitabu::Helpers
module. - Add support for media format stylesheets (print, pdf, html, epub).