You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
The text was updated successfully, but these errors were encountered:
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
The text was updated successfully, but these errors were encountered: