Skip to content

Commit ec3fffc

Browse files
committed
remove style for ebooks, improve regexps for figures
1 parent 36db769 commit ec3fffc

File tree

2 files changed

+1
-25
lines changed

2 files changed

+1
-25
lines changed

ebooks/style.css

-23
This file was deleted.

makeebooks

+1-2
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ ARGV.each do |lang|
3232
Dir[File.join(dir, '**', '*.markdown')].each do |input|
3333
puts "processing #{input}"
3434
content = File.read(input)
35-
content.gsub!(/Insert\s+(.*)(\.png)\s+\nFigure\s+(.*)/, '![\3](figures/\1-tn\2 "\3")')
35+
content.gsub!(/Insert\s+(.*)(\.png)\s*\n?\s*Figure\s+(.*)/, '![\3](figures/\1-tn\2 "\3")')
3636
book_content << RDiscount.new(content).to_html
3737
end
3838
book_content << "</body></html>"
@@ -48,6 +48,5 @@ ARGV.each do |lang|
4848
'--level1-toc', '//h:h1',
4949
'--level2-toc', '//h:h2',
5050
'--level3-toc', '//h:h3',
51-
'--extra-css', 'ebooks/style.css',
5251
'--language', lang)
5352
end

0 commit comments

Comments
 (0)