generated from obsidianmd/obsidian-sample-plugin
-
-
Notifications
You must be signed in to change notification settings - Fork 70
Closed
Labels
feature requestNew feature or requestNew feature or request
Description
Please fill out these Check-boxes
- I checked for existing similar feature requests
- I have read the docs and checked that the feature I am requesting is not already implemented
- My feature request consists of only one feature
Is your Feature Request related to a Problem or Annoyance?
It would be helpfull to define custom functions for mathjs, now I have some really long math-views that could benefit from defining custom functions
could use be clamp():
VIEW[min(max(0,{num}),10)][math]
manual formatting that should really be its own function:
VIEW[ concat(isPositive({memory^STR_mod})?'+':'', string({memory^STR_mod})) ][math]
Describe the Feature you'd like
I would like some way to get access to mathjs.import() (see docs). Either as a config or vie the js-api (similar to how itertools is exposed in js-engin or maybe as a API function?)
Alternatives
I can write JS-View and import my own js there, but they are always block element and not inline, which comes with its own set of annoyances.
Another alternative would be to make VIEW's back-referenceable, similar to how inline-buttons can be created from an invisible block button.
Additional Context
No response
Metadata
Metadata
Assignees
Labels
feature requestNew feature or requestNew feature or request