StackExchange / StackExchange/Stacks-Editor

Nested <sub> tags not handled properly when switching between modes

Open
#32 1 comment 0 reactions 1 assignee View on GitHub

@yellis is already working on this.

Since Jul 6, 2022.

bug mode - rich text
Dominant language
TypeScript
Stars
437
Forks
61
Avg merge
16h 2m
Merged PRs (30d)
8

Description

https://meta.stackexchange.com/a/360181/395497

In the current editor using nested <sub></sub> html is supported, and can achieve an extra small fontsize. For example: <sub><sub>Extra Small </sub></sub>

When writing this in the Markdown version of the RT editor, and then switching over to RT the first <sub> gets trimmed, the last </sub> doesn't: <sub>Extra Small</sub></sub>

Either nested <sub> statements should be supported, or the last closing argument should also be trimmed.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.