mirror of
https://github.com/discourse/discourse.git
synced 2024-11-24 22:50:45 +08:00
2d51833ca9
It used to insert block Oneboxes inside paragraphs which resulted in
invalid HTML. This needed an additional parsing for removal of empty
paragraphs and the resulting HTML could still be invalid.
This commit ensure that block Oneboxes are inserted correctly, by
splitting the paragraph containing the link and putting the block
between the two. Paragraphs left with nothing but whitespaces will
be removed.
Follow up to
|
||
---|---|---|
.. | ||
versioning | ||
concurrency.rb | ||
diagnostics_helper.rb | ||
discourse_event_helper.rb | ||
fake_logger.rb | ||
helpers.rb | ||
integration_helpers.rb | ||
match_html_matcher.rb | ||
rate_limit_matcher.rb | ||
shared_examples_for_stats_cacheable.rb | ||
sidekiq_helpers.rb | ||
site_settings_helpers.rb | ||
time_matcher.rb | ||
uploads_helpers.rb | ||
webauthn_integration_helpers.rb |