HTMLBook generator plugin for NoraMark
Add this line to your application's Gemfile:
gem 'nora_mark_htmlbook'
And then execute:
$ bundle
Or install it yourself as:
$ gem install nora_mark_htmlbook
$ nora2htmlbook < text.nora > result.html
require 'nora_mark'
require 'nora_mark_htmlbook'
NoraMark::Extensions.register_generator(NoraMark::Htmlbook::Generator)
puts NoraMark::Document.parse(markup_text).htmlbook
---
title: document title
generator: htmlbook
---
# Chapter 1
Lorem ipsum dolor sit amet, consectetuer adipiscing elit.
## Section 1
Donec hendrerit tempor tellus. Donec pretium posuere tellus. Proin quam nisl, tincidunt et, mattis eget, convallis nec, purus. Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Nulla posuere. Donec vitae dolor. Nullam tristique diam non turpis. Cras placerat accumsan nulla. Nullam rutrum. Nam vestibulum accumsan nisl.
- Fork it ( https://github.com//nora_mark_htmlbook/fork )
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create new Pull Request