Faster
Update dnsbl_check plugin to latest version. Update Maruku to latest version. In the wiki_controller, only apply the dnsbl_check before_filter to the :edit, :new, and :save actions, instead of all actions. This makes mundane "show" requests faster, but does not compromise spam-fighting ability.
This commit is contained in:
parent
9237858256
commit
5d2b0da4d5
10 changed files with 61 additions and 25 deletions
17
vendor/plugins/maruku/lib/maruku/ext/div.rb
vendored
17
vendor/plugins/maruku/lib/maruku/ext/div.rb
vendored
|
@ -1,7 +1,20 @@
|
|||
|
||||
|
||||
OpenDiv = /^[ ]{0,3}\+\-\-+\s*(.*)$/
|
||||
CloseDiv = /^[ ]{0,3}\=\-\-+\s*(.*)$/
|
||||
#+-----------------------------------{.warning}------
|
||||
#| this is the last warning!
|
||||
#|
|
||||
#| please, go away!
|
||||
#|
|
||||
#| +------------------------------------- {.menace} --
|
||||
#| | or else terrible things will happen
|
||||
#| +--------------------------------------------------
|
||||
#+---------------------------------------------------
|
||||
|
||||
OpenDiv = /^[ ]{0,3}\+\-\-+\s*(\{([^{}]*|".*"|'.*')*\})?\s*\-*\s*$/
|
||||
CloseDiv = /^[ ]{0,3}\=\-\-+\s*(\{([^{}]*|".*"|'.*')*\})?\s*\-*\s*$/
|
||||
# note these are not enough for parsing the above example:
|
||||
#OpenDiv = /^[ ]{0,3}\+\-\-+\s*(.*)$/
|
||||
#CloseDiv = /^[ ]{0,3}\=\-\-+\s*(.*)$/
|
||||
StartPipe = /^[ ]{0,3}\|(.*)$/ # $1 is rest of line
|
||||
DecorativeClosing = OpenDiv
|
||||
|
||||
|
|
|
@ -442,7 +442,8 @@ module MaRuKu; module In; module Markdown; module SpanLevelParser
|
|||
SPACE = ?\ # = 32
|
||||
|
||||
# R_REF_ID = Regexp.compile(/([^\]\s]*)(\s*\])/)
|
||||
R_REF_ID = Regexp.compile(/([^\]\s]*)(\s*\])/)
|
||||
# R_REF_ID = Regexp.compile(/([^\]\s]*)(\s*\])/)
|
||||
R_REF_ID = Regexp.compile(/([^\]]*)\]/)
|
||||
|
||||
# Reads a bracketed id "[refid]". Consumes also both brackets.
|
||||
def read_ref_id(src, con)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue