mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-07-25 02:07:15 +00: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:
parent
2b67270f96
commit
0ccd0679fd
@ -2,7 +2,7 @@ require './plugins/pygments_code'
|
|||||||
|
|
||||||
module BacktickCodeBlock
|
module BacktickCodeBlock
|
||||||
include HighlightCode
|
include HighlightCode
|
||||||
AllOptions = /([^\s]+)\s+(.+?)(https?:\/\/\S+)\s*(.+)?/i
|
AllOptions = /([^\s]+)\s+(.+?)(https?:\/\/\S+|\/\S+)\s*(.+)?/i
|
||||||
LangCaption = /([^\s]+)\s*(.+)?/i
|
LangCaption = /([^\s]+)\s*(.+)?/i
|
||||||
def render_code_block(input)
|
def render_code_block(input)
|
||||||
@options = nil
|
@options = nil
|
||||||
|
Loading…
x
Reference in New Issue
Block a user