aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrandon Mathis <brandon@imathis.com>2012-12-19 21:56:03 -0800
committerBrandon Mathis <brandon@imathis.com>2012-12-19 21:56:03 -0800
commitc9f820f3ef6353e5b337153311042d1a7184ad75 (patch)
tree1179c5f56872d9b3812deccd2cb0711af8691c50
parent72b4e8d5621dbb3c110fe2c273bcc3ac408ffc32 (diff)
parent0ccd0679fdfd13da34b0236361abbd149a42a777 (diff)
downloadmy_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
-rw-r--r--plugins/backtick_code_block.rb2
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