mirror of
https://github.com/wahyd4/junv-blog.git
synced 2026-08-09 04:56:22 +10:00
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 "/".
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user