Open Mick2nd opened 4 months ago
Hi Tiim, I want to use this nice widget for my own purpose but the functionality should be extended. Treat this request as proposal how things could be done (see the commit message). Thanks Mick2nd
Hi Tiim, I do not know, if You got this info. In the mean time I detected that my PR was not fully working. Especially the widgets themselves did not render. But I worked hard to find a solution for this problem and I found one. I will create a new PR with the newest changes soon. I believe the main disadvantage of my solution (in the PR) is the memory consumption. This must definitely be optimized. Thanks Mick2nd
My first commit was buggy so that the widgets were not displayed properly. The most important change is the bug fix.
Sample Screenshot with a table, a diagram and a math formula
default.css
in assets folder.index.html
for styling.index.html
.python
are recognized and and highlighted. A selection of the most common languages was done.assets
folder. They are loaded in WebView from there using a assetLoader.shouldInterceptRequest
API.
Documents
folder.userstyle.css
file can be used to fine-tune CSS settings.FileContentObserver
, PackageReplacedReceiver
, UpdateService
not working. They are intended to recognize changes of the userstyle.css
file and update the widgets accordingly.In the mean time I made further progress:
Surely, there needs to be done some fine tuning. But the main functionality works in principal.
Added functionality (flexmark extensions):