We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f3a000a commit ed83fa9Copy full SHA for ed83fa9
_plugins/rhg_textile_converter.rb
@@ -13,7 +13,16 @@ def convert(content)
13
# try to enable the <code> syntax of the original RubyForge project,
14
# but not fully.
15
lines = content.lines
16
- content = lines.map { |line| line.gsub(RHG_CODE_RE) { "<code>#{$1}</code>" } }.join
+ skips = []
17
+ skips << "cvs diff parse.y" # chapter 11
18
+ skips << "69 EXPR_DOT, /*" # chapter 11
19
+ content = lines.map do |line|
20
+ if skips.any? {|s| line.include? s }
21
+ line
22
+ else
23
+ line.gsub(RHG_CODE_RE) { "<code>#{$1}</code>" }
24
+ end
25
+ end.join
26
27
# try to apply the style for images of the original book
28
figc = 0
0 commit comments