5 Commits

Author SHA1 Message Date
9d00fdac06 Use import_sorter
flutter pub run import_sorter:main --no-comments

The code feels much cleaner
2020-07-24 12:43:28 +02:00
e047787e29 KatexWidget: Cache the generated images
The file is stored in the tmp dir with the filename of
"katex_$HASH$.png" where $HASH$ is the md5 hash of the input string to
be rendered.

The cache isn't ever cleared so far, but maybe the underlying OS will do
that automatically?

Related to #125
2020-05-19 19:44:37 +02:00
9167398309 KatexWidget: Allow multiple widgets to exist
Since there can be only one instance of the WebView, we need to lock in
between render calls to the webview.

Related to #125
2020-05-19 19:31:14 +02:00
fb48fc648d KatexWidget: Make the background transparent
Related to #125
2020-05-19 18:55:34 +02:00
ce201aa390 Add an experimental Katex rendering Widget
Related to #125

This still needs to be integrated into the Flutter Markdown renderer.
But the good news is that this works!

It currently requires network access to download the katex scripts. It
does NOT send the katex string to any server. The rendering is performed
in the app.
2020-05-19 18:36:16 +02:00