When you include an extension within an indented comment, indentation syntax (e.g. `:` or `*`) will get prepended to each line in the comment.
This diff [1] demonstrates this issue; notice the `::::` at the beginning of each line.
This task is about adding support for extensions (e.g. `<syntaxhighlight>`, `<math>` or a core tag like `<gallery>`) within indented comments //before// T246960 is resolved.
1. Go to a talk page where the reply tool is enabled (e.g.https://en.wikipedia.beta.wmflabs.org/wiki/Talk:Cats)
2. Click any "Reply" link
3. Enter the following into the `source` comment area:
```foo
<syntaxhighlight>
bar
baz
</syntaxhighlight>
quux```
=== Actual behavior
4. ⚠️ **Notice the following appears in the preview/is posted:**
foo
```
:bar
:baz
:
```
quux ~~~~
=== Expected behavior
4. ✅ **Notice the following appears in the preview/is posted:**
foo
```
bar
baz
```
quux ~~~~
=== Done
- [ ] `Expected behavior` is implemented
- [ ] Confirm with @DannyS712 that the use case they described in T264520 (closed as a duplicate of this task) is working as expected
---
1. https://nl.wikipedia.org/w/index.php?title=Overleg_Wikipedia:Discussietools&curid=5351810&diff=56179414&oldid=56109526