-
Notifications
You must be signed in to change notification settings - Fork 524
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Please ignore] Test issue #326
Comments
🐵
|
require 'digest/md5' def gfm(text) Extract pre blocksextractions = {} .*?}m) do |match| md5 = Digest::MD5.hexdigest(match) extractions[md5] = match "{gfm-extraction-#{md5}}" end end |
require 'digest/md5' def gfm(text) Extract pre blocksextractions = {} .*?}m) do |match| md5 = Digest::MD5.hexdigest(match) extractions[md5] = match "{gfm-extraction-#{md5}}" end prevent foo_bar_baz from ending up with an italic word in the middletext.gsub!(/(^(?! {4}|\t)\w+\w+\w[\w_]*)/) do |x| in very clear cases, let newlines become
|
GitHub Flavored MarkdownView the source of this content. Let's get the whole "linebreak" thing out of the way. The next paragraph contains two phrases separated by a single newline character: Roses are red The next paragraph has the same phrases, but now they are separated by two spaces and a newline character: Roses are red Oh, and one thing I cannot stand is the mangling of words with multiple underscores in them like perform_complicated_task or do_this_and_do_that_and_another_thing. A bit of the GitHub spiceIn addition to the changes in the previous section, certain references are auto-linked:
These are dangerous goodies though, and we need to make sure email addresses don't get mangled: My email addy is tom@github.com. Math is hard, let's go shoppingIn first grade I learned that 5 > 3 and 2 < 7. Maybe some arrows. 1 -> 2 -> 3. 9 <- 8 <- 7. Triangles man! a^2 + b^2 = c^2 We all like making listsThe above header should be an H2 tag. Now, for a list of fruits:
Let's get crazy:
Vestibulum enim wisi, viverra nec, fringilla in, laoreet What about some code in a list? That's insane, right?
Some people seem to like definition lists
I am a robotMaybe you want to print
You see, that was formatted as code because it's been indented by four spaces. How about we throw some angle braces and ampersands in there?
Set in stonePreformatted blocks are useful for ASCII art: ,-. , ,-. ,-. / \ ( )-( ) \ | ,.>-( )-< \|,' ( )-( ) Y ___`-' `-' |/__/ `-' | | | -hrr- ___|_____________ Playing the blame gameIf you need to blame someone, the best way to do so is by quoting them:
Or perhaps someone a little less eloquent:
Table for two
Crazy linking actionI get 10 times more traffic from Google than from require 'redcarpet'
markdown = Redcarpet.new("Hello World!")
puts markdown.to_html
|
Please stop spamming redcarpet issues with your tests! Create your own repo and use the issue tracker that comes with your new repo to do your tests. |
Test issue
The text was updated successfully, but these errors were encountered: