mirror of
https://github.com/discourse/discourse.git
synced 2025-05-28 13:51:18 +08:00
Revert "Integrate new engine, correct old specs"
This reverts commit f1b38ba4fb778c08a45dd001300fc651c92718ba.
This commit is contained in:
@ -175,14 +175,12 @@ module PrettyText
|
||||
|
||||
buffer << "__textOptions = __buildOptions(__optInput);\n"
|
||||
|
||||
|
||||
buffer << ("__pt = new __PrettyText(__textOptions);")
|
||||
|
||||
# Be careful disabling sanitization. We allow for custom emails
|
||||
if opts[:sanitize] == false
|
||||
buffer << ('__pt.disableSanitizer();')
|
||||
buffer << ('__textOptions.sanitize = false;')
|
||||
end
|
||||
|
||||
buffer << ("__pt = new __PrettyText(__textOptions);")
|
||||
opts = context.eval(buffer)
|
||||
|
||||
DiscourseEvent.trigger(:markdown_context, context)
|
||||
|
Reference in New Issue
Block a user