mirror of
https://github.com/discourse/discourse.git
synced 2025-09-05 08:59:27 +08:00
Allow plugins to add vendored files for the text pipeline
This commit is contained in:
parent
e7b0ce1334
commit
564eb8c20f
2 changed files with 12 additions and 1 deletions
|
@ -94,6 +94,10 @@ module PrettyText
|
|||
end
|
||||
end
|
||||
|
||||
DiscoursePluginRegistry.vendored_pretty_text.each do |vpt|
|
||||
ctx.eval(File.read(vpt))
|
||||
end
|
||||
|
||||
ctx
|
||||
end
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue