Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Book#render patches and sub-section headings #1

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

semmons99
Copy link

Two changes to Book#render to accept a single Emitter, and automatically call Emitter.new if an Emitter Class is passed instead of an Emitter instance.

Now I can write

book.render("rbmu-mentoring", Bookie::Emitters::PDF)

Also added the ability to detect sub-section heading /^### / and act accordingly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants