discourse/plugins/discourse-local-dates
Martin Brennan 54a518b21d
FIX: Quoting local dates bbcode regeneration (#17141)
This commit allows quoting of discourse-local-date elements
and converts the quoted tags back into bbcode so that the
rendered quote will also render the discourse-local-date HTML.
This works on single dates as well as date ranges, and supports
all of the options used by discourse-local-date.

This also necessitated adding addTextDecorateCallback to the
to-markdown core lib (similar to addBlockDecorateCallback and
addTagDecorateCallback) to transform the text nodes between
date ranges to remove the -> in the final quote.

c.f. https://meta.discourse.org/t/quotes-that-contain-date-time/101999
2022-06-21 10:07:21 +10:00
..
assets FIX: Quoting local dates bbcode regeneration (#17141) 2022-06-21 10:07:21 +10:00
config FEATURE: Add Croatian language (#17130) 2022-06-18 00:18:22 +02:00
lib/discourse_local_dates DEV: enable frozen string literal on all files 2019-05-13 09:31:32 +08:00
spec DEV: Automatically require 'rails_helper' in all specs (#16077) 2022-03-01 17:50:50 +00:00
test/javascripts FIX: Quoting local dates bbcode regeneration (#17141) 2022-06-21 10:07:21 +10:00
plugin.rb DEV: Remove .es6 extensions from core (#14912) 2021-11-13 12:51:53 +01:00