diff options
author | Liang Sun <i@liangsun.org> | 2012-11-27 10:18:12 +0800 |
---|---|---|
committer | Liang Sun <i@liangsun.org> | 2012-11-27 10:18:12 +0800 |
commit | 0ccd0679fdfd13da34b0236361abbd149a42a777 (patch) | |
tree | 337d32595bbe7856469a0ca7be073fa4e816c924 /plugins | |
parent | 2b67270f960563c55dd6c66495517bccc4f7fb17 (diff) | |
download | my_new_personal_website-0ccd0679fdfd13da34b0236361abbd149a42a777.tar.xz my_new_personal_website-0ccd0679fdfd13da34b0236361abbd149a42a777.zip |
To support url without domain name like /path/file
You need to know if you would like to support this, each word in the title can not start with "/".
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 |