HomePhabricator
Diffusion Comm 52e40abceb1c

[web] Add spoiler rule to simpleMarkdownRules

Description

[web] Add spoiler rule to simpleMarkdownRules

Summary:
We add the rule to web/markdown/rules.react.js in order to parse content enclosed within the || ... || characters to be spoilers. This is the web implementation of the spoiler feature.

Linear: https://linear.app/comm/issue/ENG-2190/add-spoiler-rule-to-simplemarkdownrules-in-webmarkdownrulesreactjs

Test Plan:
Looked at the output in the inspect element tab on a specific message that has spoiler content. For now, until the next diff, the spoiler content is enclosed within span tags, signifying that the spoiler parse rule is working.

Spoiler Rule.png (1×2 px, 508 KB)

Reviewers: atul, ginsu

Reviewed By: atul

Subscribers: ashoat, tomek, abosh

Differential Revision: https://phab.comm.dev/D5546

Details

Provenance
rohanAuthored on Nov 7 2022, 11:38 AM
Reviewer
atul
Differential Revision
D5546: [web] Add spoiler rule to simpleMarkdownRules
Parents
rCOMM69293f1edd61: [lib] Fix typo `assetMediaMessageType` => `assertMediaMessageType`
Branches
Unknown
Tags
Unknown