1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

second test to warn against reading guides in GitHub

This commit is contained in:
Xavier Noria 2014-12-23 23:17:58 +01:00
parent 5a877d504e
commit 82180f4ebd
2 changed files with 2 additions and 3 deletions

View file

@ -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>)

View file

@ -1,4 +1,4 @@
**GITHUB-WARNING: This is source code, guides are published in http://guides.rubyonrails.org.**
**DO NOT READ THIS FILE, guides are published in http://guides.rubyonrails.org.**
Ruby on Rails 2.2 Release Notes
===============================