Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

remove style for ebooks, improve regexps for figures

  • Loading branch information...
commit ec3fffc19574ccce74180a145e4abe574933ab19 1 parent 36db769
@avsej avsej authored
Showing with 1 addition and 25 deletions.
  1. +0 −23 ebooks/style.css
  2. +1 −2  makeebooks
View
23 ebooks/style.css
@@ -1,23 +0,0 @@
-ul {
- margin: 20px;
-}
-
-ol {
- margin: 20px;
-}
-
-body pre {
- margin: 10px;
- font-weight: bold;
-}
-
-body pre2 {
- background-color: silver;
- padding: 10px;
- border-top-style: solid;
- border-left-style: solid;
- border-left-width: 1px;
- border-top-width: 1px;
- overflow-x: auto; /* Use horizontal scroller if needed; for Firefox 2, not needed in Firefox 3 */
- white-space: pre-wrap; /* css-3 */
-}
View
3  makeebooks
@@ -32,7 +32,7 @@ ARGV.each do |lang|
Dir[File.join(dir, '**', '*.markdown')].each do |input|
puts "processing #{input}"
content = File.read(input)
- content.gsub!(/Insert\s+(.*)(\.png)\s+\nFigure\s+(.*)/, '![\3](figures/\1-tn\2 "\3")')
+ content.gsub!(/Insert\s+(.*)(\.png)\s*\n?\s*Figure\s+(.*)/, '![\3](figures/\1-tn\2 "\3")')
book_content << RDiscount.new(content).to_html
end
book_content << "</body></html>"
@@ -48,6 +48,5 @@ ARGV.each do |lang|
'--level1-toc', '//h:h1',
'--level2-toc', '//h:h2',
'--level3-toc', '//h:h3',
- '--extra-css', 'ebooks/style.css',
'--language', lang)
end
Please sign in to comment.
Something went wrong with that request. Please try again.