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] DrawIO integration #3010
Comments
Since the preview isn't a fully fledged browser, that integration would be clunky at best, if ever attempted. 😬 But lots could already be done with the scripting engine, e.g. like:
... or similar |
OOT: Oh, thank you for the sponsorship. 😁 |
On the markdown spec: I would advocate to extend it with a special notation, something like:
I know that it would break compliancy with markdown standards but it wouldn't break functionality as the markdown would simply not resolve in other editors. It would also be a way to allow for future extensions still. Such an QON-only feature would also be an additional reason to use QON, and not another tool. |
Can you please elaborate what "extending the spec" means for you? There is no architecture for such plugins in QOwnNotes, no coloring either, and neither the highlighter nor md4c (for the preview) would support them. And the preview itself is also no browser. But with https://www.qownnotes.org/scripting/hooks.html#prenotetomarkdownhtmlhook and https://www.qownnotes.org/scripting/hooks.html#notetomarkdownhtmlhook you can already parse that in a script and interpret it in whatever way... |
And I almost forgot, there is https://www.qownnotes.org/scripting/methods-and-objects.html#adding-a-highlighting-rule-for-the-editor if you want to add a rule to the highlighter of the editor. |
But with https://www.qownnotes.org/scripting/hooks.html#prenotetomarkdownhtmlhook and https://www.qownnotes.org/scripting/hooks.html#notetomarkdownhtmlhook you can already parse that in a script and interpret it in whatever way... OT: is there any way to leverage the HTML DOM API inside the QtQML scripts? I understand that there's no browser to support the API, but maybe some Qt library? I see that in the scripting examples HTML is parsed using regexes, and that is not really practical. It's a shame that you can't access the traversing methods and properties when you have an HTML at hand! |
You would need a real browser to interpret that, and you can't just pull in one that works on every platform in a script and show it somehow... But you can use JS libraries in a QML, I added a way to include JS files, and people did in the script repository. |
Is your feature request related to a problem? Please describe.
Not related to a problem and I know this a big ask. But here it is anyway.
Describe the solution you'd like
I would love to see an integration with DrawIO (diagrams.net) via a plugin(?), allowing diagrams to be natively displayed - and if possible - edited in QON. My reference is the availability and use of the DrawIO plugin in the Atlassian Jira & Confluence suites, e.g.: https://www.drawio.com/doc/drawio-confluence-cloud.
Here is how it could potentially work from a conceptual point of view:
Describe alternatives you've considered
None, IMHO DrawIO is the Visio of the FOSS world. For many it is a cornerstone in technical documentation.
Additional context
None, but in my experience a visual often speaks louder than a 1000 words.
The text was updated successfully, but these errors were encountered: