Use entry title without whitespace as section id
This commit is contained in:
1 parent
e3e7cea177
commit
b1083ab367
2 files changed
+11
-7
No files matched your search
+6
-2
@@ -12,8 +12,12 @@ module ExtraFilters
|
||||
Maruku.new(input).to_html
|
||||
end
|
||||
|
||||
def sanitize(input)
|
||||
input.gsub(/[^a-zA-Z0-9_]/,"")
|
||||
def section_id(input)
|
||||
input.gsub(/[^a-zA-Z0-9_]/, '')
|
||||
end
|
||||
|
||||
def entry_id(input)
|
||||
input.gsub(' ', '')
|
||||
end
|
||||
|
||||
def no_paragraph(input)
|
||||
|
||||
Reference in new issue
Block a user