diff options
author | Brandon Mathis <brandon@imathis.com> | 2012-12-19 21:56:03 -0800 |
---|---|---|
committer | Brandon Mathis <brandon@imathis.com> | 2012-12-19 21:56:03 -0800 |
commit | c9f820f3ef6353e5b337153311042d1a7184ad75 (patch) | |
tree | 1179c5f56872d9b3812deccd2cb0711af8691c50 | |
parent | 72b4e8d5621dbb3c110fe2c273bcc3ac408ffc32 (diff) | |
parent | 0ccd0679fdfd13da34b0236361abbd149a42a777 (diff) | |
download | my_new_personal_website-c9f820f3ef6353e5b337153311042d1a7184ad75.tar.xz my_new_personal_website-c9f820f3ef6353e5b337153311042d1a7184ad75.zip |
Merge pull request #824 from liangsun/patch-1
To support url without domain name like /path/file
Diffstat (limited to '')
-rw-r--r-- | plugins/backtick_code_block.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/backtick_code_block.rb b/plugins/backtick_code_block.rb index 40e7900b..0e7cee41 100644 --- a/plugins/backtick_code_block.rb +++ b/plugins/backtick_code_block.rb @@ -2,7 +2,7 @@ require './plugins/pygments_code' module BacktickCodeBlock include HighlightCode - AllOptions = /([^\s]+)\s+(.+?)(https?:\/\/\S+)\s*(.+)?/i + AllOptions = /([^\s]+)\s+(.+?)(https?:\/\/\S+|\/\S+)\s*(.+)?/i LangCaption = /([^\s]+)\s*(.+)?/i def render_code_block(input) @options = nil |