tombruijn / kotoba Goto Github PK
View Code? Open in Web Editor NEWBook manager in Ruby for Markdown files. Exports to PDF through Prawn.
License: MIT License
Book manager in Ruby for Markdown files. Exports to PDF through Prawn.
License: MIT License
Confirmed bug
Rather than [:bold, :italic]
prawn only accepts either one of the values, not an array, while the docs would indicate otherwise.
http://prawn.majesticseacreature.com/docs/0.11.1/Prawn/Text.html
Two solutions:
http://prawn.majesticseacreature.com/docs/0.11.1/Prawn/Text.html
CMD + F => <color>
Automatic ToC generation?
Kotoba.config.layout.toc do |t|
t.title = "Table of Contents"
t.page = 2
t.filler = "." # Title..............3
t.levels = 2 # Two levels deep
# etc.
end
Let Kotoba calculate a line height automatically based on a user's font size when the line height is not set?
nil || 0
)Lists now do not indent from the prefix, but from the text.
Expected output:
- I am a list
on two lines.
Received output:
- I am a list
on two lines.
A possible solution would be to use the indent
prawn method, but that would require the list to be wrapped in a bounding_box and the prefix to be placed in a different way.
Add styling options for links, emphasis, bold, etc.
This list contains issues/features from the start, I'm slowly moving new issues into their own separate issues. So check out the issue tracker as well.
When everything is checked on this issue it will be closed.
page <page> of <total>
(actual syntax)layout_for [page..range] do |p| etc..
config.layout.toc.page = 2
Styling:
italic
. The italic element will only be italic, not bold italicKotoba.config.layout.default
Allow automatic numbering of headings just like how li-s are numbered.
Kotoba.config.layout.heading 1 do |h|
h.prefix = "{n} "
end
As a prefix
1 Heading
Just a number (how to support that through a prefix?)
1
Maybe even add line break support so headings can turn out like:
5
Somewhere in the middle of the story
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.