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.
Details
Details
- Reviewers
atul ginsu - Commits
- rCOMM52e40abceb1c: [web] Add spoiler rule to simpleMarkdownRules
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.
Diff Detail
Diff Detail
- Repository
- rCOMM Comm
- Branch
- spoiler_web
- Lint
No Lint Coverage - Unit
No Test Coverage
Event Timeline
Comment Actions
Looks like it matches D5347 (would've been helpful to link since the changes to native/markdown/rules.react.js haven't been landed in the repo)