Skip to content

Instantly share code, notes, and snippets.

@grobmeier
Created November 30, 2014 10:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save grobmeier/f2222332ffe86dbf485c to your computer and use it in GitHub Desktop.
Save grobmeier/f2222332ffe86dbf485c to your computer and use it in GitHub Desktop.
require "Redcarpet"
section = <<EOS
<script type="text/javascript">
google_ad_client = "ca-pub-000000000";
google_ad_slot = "000000000";
google_ad_width = 1;
google_ad_height = 1;
</script>
EOS
markdown = Redcarpet::Markdown.new(Redcarpet::Render::HTML)
puts markdown.render(section)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment