Fix for multiple includes on the same page; ignoring leading/trailing whitespace in WikiLinks [both by dm1]
This commit is contained in:
parent
7c5958ae7b
commit
f6a3b88693
4 changed files with 36 additions and 3 deletions
|
@ -9,7 +9,7 @@ require 'chunks/wiki'
|
|||
|
||||
class Include < WikiChunk::WikiReference
|
||||
|
||||
INCLUDE_PATTERN = /\[\[!include(.*)\]\]\s*/i
|
||||
INCLUDE_PATTERN = /\[\[!include\s+(.*?)\]\]\s*/i
|
||||
def self.pattern() INCLUDE_PATTERN end
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue