Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG]: the RegExp replacement should text supports escape characters, such as \n #254

Closed
2 tasks done
miaogaolin opened this issue Dec 14, 2023 · 3 comments
Closed
2 tasks done
Assignees
Labels
🐛 Bug Something isn't working

Comments

@miaogaolin
Copy link

Issue validation

  • I checked the issue to prevent duplicate
  • My issue concern doesn't concern the Mkdocs template

Is your feature related to a problem ?

No response

What solution do you want to see ?

Plugin Settings

image

Expectation:

Before Replacing:

cover.image

Aftere Replacing

cover:
  image

But the actual result:

cover:\n\timage

Describe the alternative you've considered

No response

OS

Windows

Anything else?

No response

Plugin version

6.11.5

Obsidian version & debug log

Obsidian version: 1.4.16
@Lisandra-dev
Copy link
Member

Well...
For this, I don't know why.
I will investigate why it replace by the strict string and not the "value"

@Lisandra-dev Lisandra-dev added 🐛 Bug Something isn't working and removed ✨ Enhancement labels Dec 14, 2023
@Lisandra-dev Lisandra-dev changed the title [FR]: Whether the RegExp replacement text supports escape characters, such as \n [BUG]: the RegExp replacement should text supports escape characters, such as \n Dec 14, 2023
@miaogaolin
Copy link
Author

Thank you so much.

@Lisandra-dev
Copy link
Member

Fixed by de34672

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🐛 Bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants