We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 36db769 commit ec3fffcCopy full SHA for ec3fffc
ebooks/style.css
makeebooks
@@ -32,7 +32,7 @@ ARGV.each do |lang|
32
Dir[File.join(dir, '**', '*.markdown')].each do |input|
33
puts "processing #{input}"
34
content = File.read(input)
35
- content.gsub!(/Insert\s+(.*)(\.png)\s+\nFigure\s+(.*)/, '')
+ content.gsub!(/Insert\s+(.*)(\.png)\s*\n?\s*Figure\s+(.*)/, '')
36
book_content << RDiscount.new(content).to_html
37
end
38
book_content << "</body></html>"
@@ -48,6 +48,5 @@ ARGV.each do |lang|
48
'--level1-toc', '//h:h1',
49
'--level2-toc', '//h:h2',
50
'--level3-toc', '//h:h3',
51
- '--extra-css', 'ebooks/style.css',
52
'--language', lang)
53
0 commit comments