mirror of
https://github.com/discourse/discourse.git
synced 2025-05-30 07:11:34 +08:00
Feature: CommonMark support
This adds the markdown.it engine to Discourse. https://github.com/markdown-it/markdown-it As the migration is going to take a while the new engine is default disabled. To enable it you must change the hidden site setting: enable_experimental_markdown_it. This commit is a squash of many other commits, it also includes some improvements to autospec (ability to run plugins), and a dev dependency on the og gem for html normalization.
This commit is contained in:
@ -13,7 +13,12 @@ module Autospec
|
||||
"-f", "Autospec::Formatter", specs.split].flatten.join(" ")
|
||||
# launch rspec
|
||||
Dir.chdir(Rails.root) do
|
||||
@pid = Process.spawn({"RAILS_ENV" => "test"}, "bin/rspec #{args}")
|
||||
env = {"RAILS_ENV" => "test"}
|
||||
if specs.split(' ').any?{|s| s =~ /^(.\/)?plugins/}
|
||||
env["LOAD_PLUGINS"] = "1"
|
||||
puts "Loading plugins while running specs"
|
||||
end
|
||||
@pid = Process.spawn(env, "bin/rspec #{args}")
|
||||
_, status = Process.wait2(@pid)
|
||||
status.exitstatus
|
||||
end
|
||||
|
Reference in New Issue
Block a user