typora-issues icon indicating copy to clipboard operation
typora-issues copied to clipboard

In the replace field, the \n does not make a new line

Open Starmania opened this issue 2 years ago • 1 comments

  • [x] Searched existing issues to avoid creating duplicates.

  • [x] Confirmed that it can be reproduced in built-in themes without customized css.

    If it only exists in 3rd party themes or css, you can still report it, but please attach the theme target or the css file. We may not "fix" it, if it is caused by 3rd party themes or css styles that we cannot support.

  • [x] Searched http://support.typora.io/


Describe the bug If you use the feature Search and Replace in regex mode, the search works as expected but you couldn't replace by \n.

To Reproduce Steps to reproduce the behavior:

  1. Do some Search and Replace
  2. Active Regex mode
  3. Search for somethin to replace
  4. Set the replace field to \n
  5. The thing that match will be replaced by \\n

Expected behavior A new line should replace the thing you search

Desktop (please complete the following information):

  • OS: Windows 10 64bit

Typora Version

  • 1.5.10

Starmania avatar Mar 27 '23 07:03 Starmania

Yes this bug is still in 1.10.8

klizet avatar May 14 '25 03:05 klizet