Skip to content

Instantly share code, notes, and snippets.

@mcdonc
Created July 20, 2012 00:58
Show Gist options
  • Save mcdonc/3147993 to your computer and use it in GitHub Desktop.
Save mcdonc/3147993 to your computer and use it in GitHub Desktop.
bug in code-block rendering

The following should be rendered as a text code block:

$ easy_install pyramid
$ python helloworld.py

I guess it is.. but I don't know why the first text code block here isn't:

https://github.com/Pylons/pyramid/blob/master/docs/index.rst

See https://raw.github.com/Pylons/pyramid/master/docs/index.rst for raw.

The following should be rendered as a Python code block (albeit without linenos), but it isn't:

 import unittest

 from fake_github_api_of_death import close_issue

 class Highlighting(unittest.TestCase):

     def setUp(self):
         self.tagline = "HIGHLIGHT ALL OF THE REST CODE BLOCKS!?"

     def test_highlighting(self):
         self.assertTrue(rest_code_highlightining())
         print("http://cl.ly/ICZK")
         print("Yuuuuuuuuuup!")

     def tearDown(self):
         # Closes https://github.com/github/markup/pull/92/.
         close_issue('github/markup', 92)
         print("Python & reStructuredText, We love you. <3")

 if __name__ = "__main__":
     unittest.main()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment