Skip to content

[iOS]: previous heading style is applied for the next paragraph #303

@IvanIhnatsiuk

Description

@IvanIhnatsiuk

Describe the bug

If we set a default value like:

<html>
<h1><i><b>test</b></i></h1>
<p>Test</p>
</html>

Then, if we type anything in the next paragraph, it will become a header, and it won't be possible to disable the heading style for this line.

The problem is inhandleImproperHeadings method.

To Reproduce
Steps to reproduce the behavior:

  1. Set the default value like:
<html>
<h1><i><b>test</b></i></h1>
<p>Test</p>
</html>
  1. Try to type anything on the second line
  2. Observe that this line becomes H1/H2/H3

Expected behavior

The second paragraph should not become H1/H2/H3.

Screenshots

Screen.Recording.2025-12-04.at.13.04.13.mov

Device (please complete the following information):

  • Device: [e.g. iPhone6]
  • OS: [e.g. iOS8.1]
  • Version [e.g. 22]

Additional context
Add any other context about the problem here.

Metadata

Metadata

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions