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

[feat] Rust equivalent convertFileSrc() #12022

Open
Iaphetes opened this issue Dec 21, 2024 · 0 comments
Open

[feat] Rust equivalent convertFileSrc() #12022

Iaphetes opened this issue Dec 21, 2024 · 0 comments

Comments

@Iaphetes
Copy link

Describe the problem

I'm currently trying to write a markdown editor in Tauri. For this I need to convert the file paths the user enters to tauris file paths.
Since I use a Rust library to parse the markdown to HTML, I need to do the file path conversion in Rust.

Describe the solution you'd like

For this reason I'd like to have the convertFileSrc() function in Rust.

Alternatives considered

Currently I'm trying to either call the Javascript version of the function from within Rust but this is hacky and I'd like to have a native way.

I'm also considering just passing a template to rust at the start of the program, that describes the transformation, but this feels also somewhat prone to breaking.

Additional context

No response

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