aboutsummaryrefslogtreecommitdiffstats
path: root/guides/rails_guides
diff options
context:
space:
mode:
authorXavier Noria <fxn@hashref.com>2014-12-23 23:17:58 +0100
committerXavier Noria <fxn@hashref.com>2014-12-23 23:18:51 +0100
commit82180f4ebdb1761268154083e5bd3881fc26f9ff (patch)
tree4858572371fe7450ab1c9b9d50d888ee5ff5d355 /guides/rails_guides
parent5a877d504e8196c19b5f94653bba9db7d059b6b6 (diff)
downloadrails-82180f4ebdb1761268154083e5bd3881fc26f9ff.tar.gz
rails-82180f4ebdb1761268154083e5bd3881fc26f9ff.tar.bz2
rails-82180f4ebdb1761268154083e5bd3881fc26f9ff.zip
second test to warn against reading guides in GitHub
Diffstat (limited to 'guides/rails_guides')
-rw-r--r--guides/rails_guides/markdown/renderer.rb3
1 files changed, 1 insertions, 2 deletions
diff --git a/guides/rails_guides/markdown/renderer.rb b/guides/rails_guides/markdown/renderer.rb
index bf3f5c5aa3..d2945e0919 100644
--- a/guides/rails_guides/markdown/renderer.rb
+++ b/guides/rails_guides/markdown/renderer.rb
@@ -25,8 +25,7 @@ HTML
def paragraph(text)
if text =~ /^(TIP|IMPORTANT|CAUTION|WARNING|NOTE|INFO|TODO)[.:](.*?)/
convert_notes(text)
- elsif text.include?('GITHUB-WARNING')
- ''
+ elsif text.include?('DO NOT READ THIS FILE')
elsif text =~ /^\[<sup>(\d+)\]:<\/sup> (.+)$/
linkback = %(<a href="#footnote-#{$1}-ref"><sup>#{$1}</sup></a>)
%(<p class="footnote" id="footnote-#{$1}">#{linkback} #{$2}</p>)