mirror of
https://github.com/redmine/redmine.git
synced 2025-11-02 11:25:55 +01:00
Comments for Textile text formatting (#20511).
Patch by Go MAEDA. git-svn-id: http://svn.redmine.org/redmine/trunk@21457 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
@@ -298,6 +298,7 @@ class RedCloth3 < String
|
||||
@pre_list = []
|
||||
rip_offtags text
|
||||
no_textile text
|
||||
remove_html_comments text
|
||||
escape_html_tags text
|
||||
# need to do this before #hard_break and #blocks
|
||||
block_textile_quotes text unless @lite_mode
|
||||
@@ -1217,4 +1218,8 @@ class RedCloth3 < String
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
def remove_html_comments(text)
|
||||
text.gsub!(/<!--[\s\S]*?-->/, '')
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user