mediawiki-extensions-Discus.../tests/qunit
Bartosz Dziewoński 1d43a024f9 Handle reply/topic preview entirely server-side
We were rendering the preview in a completely different way from how
we would add the real reply, and the results would be different
sometimes, particularly for multi-line comments with messed-up markup.

Render it server-side instead, in a very similar way to real replies
(generating a DOM list node and transforming it through Parsoid),
although without the whole context of the page to improve performance.

We can remove a lot of client-side code that was used solely for this.

This will allow the preview to accurately display the signatures when
we change how they are added (T278442), without us having to implement
those changes again from scratch for the preview.

Change-Id: I53341f4d4075c25b67ec3b3032bff9b8a880dcd3
2022-02-21 17:42:28 +01:00
..
.eslintrc.json eslint: Lint root folder with server rules 2021-10-07 17:37:52 +01:00
index.js Fix skipping to the end of paragraph, now it considers nested tags 2021-01-18 18:20:20 +00:00
modifier.test.js Handle reply/topic preview entirely server-side 2022-02-21 17:42:28 +01:00
parser.test.js Split off ThreadItemSet from CommentParser 2022-02-21 16:22:32 +00:00
testUtils.js Split off ThreadItemSet from CommentParser 2022-02-21 16:22:32 +00:00
ThreadItem.test.js Change CommentParser into a service 2022-02-19 19:51:57 +01:00
utils.test.js Change CommentParser into a service 2022-02-19 19:51:57 +01:00