From 5a877d504e8196c19b5f94653bba9db7d059b6b6 Mon Sep 17 00:00:00 2001 From: Xavier Noria Date: Tue, 23 Dec 2014 23:00:27 +0100 Subject: proof of concept, need to check in GitHub --- guides/rails_guides/markdown/renderer.rb | 2 ++ guides/source/2_2_release_notes.md | 2 ++ 2 files changed, 4 insertions(+) (limited to 'guides') 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 =~ /^\[(\d+)\]:<\/sup> (.+)$/ linkback = %(#{$1}) %(

#{linkback} #{$2}

) 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 =============================== -- cgit v1.2.3