diff options
author | Xavier Noria <fxn@hashref.com> | 2014-12-23 23:00:27 +0100 |
---|---|---|
committer | Xavier Noria <fxn@hashref.com> | 2014-12-23 23:00:27 +0100 |
commit | 5a877d504e8196c19b5f94653bba9db7d059b6b6 (patch) | |
tree | faa1eaf6eca30042604276fa65c5fd62c0a4d7f9 /guides | |
parent | a862c39b8804a9ee2f94945ae607b255c9f61c49 (diff) | |
download | rails-5a877d504e8196c19b5f94653bba9db7d059b6b6.tar.gz rails-5a877d504e8196c19b5f94653bba9db7d059b6b6.tar.bz2 rails-5a877d504e8196c19b5f94653bba9db7d059b6b6.zip |
proof of concept, need to check in GitHub
Diffstat (limited to 'guides')
-rw-r--r-- | guides/rails_guides/markdown/renderer.rb | 2 | ||||
-rw-r--r-- | guides/source/2_2_release_notes.md | 2 |
2 files changed, 4 insertions, 0 deletions
diff --git a/guides/rails_guides/markdown/renderer.rb b/guides/rails_guides/markdown/renderer.rb index 688f177578..bf3f5c5aa3 100644 --- a/guides/rails_guides/markdown/renderer.rb +++ b/guides/rails_guides/markdown/renderer.rb @@ -25,6 +25,8 @@ HTML def paragraph(text) if text =~ /^(TIP|IMPORTANT|CAUTION|WARNING|NOTE|INFO|TODO)[.:](.*?)/ convert_notes(text) + elsif text.include?('GITHUB-WARNING') + '' elsif text =~ /^\[<sup>(\d+)\]:<\/sup> (.+)$/ linkback = %(<a href="#footnote-#{$1}-ref"><sup>#{$1}</sup></a>) %(<p class="footnote" id="footnote-#{$1}">#{linkback} #{$2}</p>) diff --git a/guides/source/2_2_release_notes.md b/guides/source/2_2_release_notes.md index b11aaa15a8..da23acda3c 100644 --- a/guides/source/2_2_release_notes.md +++ b/guides/source/2_2_release_notes.md @@ -1,3 +1,5 @@ +**GITHUB-WARNING: This is source code, guides are published in http://guides.rubyonrails.org.** + Ruby on Rails 2.2 Release Notes =============================== |