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

Feature Request: String (and Regex) replacement in Incept #163

Open
salmelo opened this issue Oct 10, 2024 · 0 comments
Open

Feature Request: String (and Regex) replacement in Incept #163

salmelo opened this issue Oct 10, 2024 · 0 comments

Comments

@salmelo
Copy link
Contributor

salmelo commented Oct 10, 2024

Possibly one of the most powerful things you can currently do with JS and not Incept is string replacement, especially with Regex. (Tho I'd probably expect Incept to use .NET's regex flavor and not JS's)

An example from my current project, where I bold everything before the first colon on each line and double the line spacing at hard line breaks, as well as convert from '\n' in the spreadsheet to
for the formatted text:

var txt = text.replace(/^(.+?):/gm,"<b>$1:</b>");
txt.replaceAll('\n',"<ls=50><br></ls>")

I'd be willing to help implement this but I don't really want to give myself the responsibility of deciding on the syntax.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant