|
@ -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 |
|
|