- Removed unnecessary content filtering for escaping markdown
- Escaping codeblocks defaults to false and can be enabled by passing escape:true
- Backtick codeblocks are automatically escaped when using Textile
- Scoped styling of .highlight divs to figure elements
For example, in the YAML header set categories like this
categories:
- awesome [Awesome Posts]
- news
Octopress will parse out '[Awesome Posts]' and 'news' as the title and display it in
the category list, but the category index urls will be awesome/ and news/
Fixes#902
- The highlight function now accepts only to variables: code, options.
- Extracting part of a code snippet is now a method of pygments_code.rb.
- Options assignment has been simplified for all code plugins.
- Pygments caching is broken into a couple utility functions for greater flexibility.
- Now Gist cache files are hashed against their gist id and parameters.
- Raw gists are no longer cached, only processed gists.
- Gist caches are still stored in .gist-cache/ for more atomic cleanup.
Note: For the docs, caching speeds up generation by about 1800 milliseconds on my machine.
- Each code snippet's html is now cached (before only pygments output was cached and html was being processed each time)
- Caching MD5 is based on code snippets as well as options.
- Fixed an issue where gist tags weren't specifying a default start line
Note: The caching change shaved 800 milliseconds off of the render time for the docs. For code heavy sites this should be a nice change.
- Unified handling of key, value options
- Added url, link_text, and title options
- Gists can now accept start, end, range, title, url, link_text, linenos and marks options
- Code accessibility improvements (hiding line numbers) #864
- Static Gist embeds show titles and link to the Gist
- Stylesheets refactored to remove !important and references to Gist classes
- Renamed links for include code
- Removed sometimes incorrect title attribute on code snippet links
- Range options are now properly stripped out of code plugin markup
- Markers now add start and end class names for more style control
- code_block plugin properly passes markings in highlight options
- Deprecated title before file name syntax for include_code
1. Removed lots of duplication
2. Added warnings and fixed some dim regex
3. New: set a start line number for any code snippet
4. New: set a start, end, or range for include_code
5. New: added option to disable line numbers linenos:false
Fixes#478#484