To support url without domain name like /path/file
Brandon Mathis authored on 20/12/2012 at 05:56:03... | ... |
@@ -2,7 +2,7 @@ require './plugins/pygments_code' |
2 | 2 |
|
3 | 3 |
module BacktickCodeBlock |
4 | 4 |
include HighlightCode |
5 |
- AllOptions = /([^\s]+)\s+(.+?)(https?:\/\/\S+)\s*(.+)?/i |
|
5 |
+ AllOptions = /([^\s]+)\s+(.+?)(https?:\/\/\S+|\/\S+)\s*(.+)?/i |
|
6 | 6 |
LangCaption = /([^\s]+)\s*(.+)?/i |
7 | 7 |
def render_code_block(input) |
8 | 8 |
@options = nil |