mattermost-mobile/app
KobeBergmans 21adcf6085
Latex rendering with react-native-math-view (#5651)
* Added a Latex code window that displays the given code using katex

* Latex is now displayed without having to go to the next screen

* MathView test

* MathView WIP:
Displays math good, but in verry small font
View does not load if there is a syntax error and we are hard stuck in the app

* Math view now is rendered properly, few working points:
Text is not fixed size, it renders in a weird size
Multi Line subscript is not working

* Latex is now rendered properly

* Fixed Error message and moved helper function to utils

* Added some padding and vertical scroll on latex screen

* Updated config option to work on real phone too

* Removed unused code and fixed tests

* Added LatexInline and tried to modify parser, not yet finished though. InlineLatexOption is not yet coded for

* Bugfixes and better line break checking

* Few margin changes for ios, also updated pod files

* padding is now dependend on system

* Add platform import

* Reverted package-lock change

* Added tests

* Bugfixes, UI tweaks and added unit test for latex util

* Added enableLatex to markdown options instead getting the state and config

* Changed the rendering a little bit, it is better but still far from perfect

* Width and height is now correctely displayed. Still not clean enough though

* Inline latex is now rendered properly for most equations

* Inline latex is now working properly

* tests for escaping and unescaping functions

* Added inline latex setting support

* Added inline latex tests

* Delete unused comment

* Added extra regex rule: there must be no word character in front of the inline latex code

* Upgraded math-view package and deleted duplicate entry from gemfile.lock

* Inline error functions are now class functions

* Updated error color to theme error color

* Latex screen now extends the code screen

* Markdown changes:
Now uses dimensions instead of windowdimensions
Removed inline latex function
extracted latex rendering into separate function

* updated latex util test

* Hardcoded latex language in latex code block

* Added proptypes and cleaned up latex code block

* Bugfix latex split lines

* ÃDeleted language prop from latex code block

* Changed commonmark packages to personal repo's

* Latex rendering now goes by commonmark

* Deleted unused function and tests

* Commonmark packages back to normal versions with patch package

* Updated commonmark patch file to right file and changed package lock to point at right repo

* Updated patch files to latest version

* Updated commonmark patch

* Fixed linter errors

* Integrety of commonmark fix

* First fix of ios problems

* Updated snapshot

Co-authored-by: Kobe Bergmans <kobe.bergmans@student.kuleuven.be>
Co-authored-by: Administrator <admin@Macintosh-3.localdomain>
Co-authored-by: kobe bergmans <kobebergmans@kobes-MacBook-Pro.local>
2022-04-19 09:16:38 -04:00
..
actions MM-42821 - Calls mobile: Default calls doesn't work on mobile (#6107) 2022-04-01 10:17:48 -04:00
client [Apps Framework] Separate calls (#5877) 2022-03-24 11:03:06 -04:00
components Latex rendering with react-native-math-view (#5651) 2022-04-19 09:16:38 -04:00
constants MM-42821 - Calls mobile: Default calls doesn't work on mobile (#6107) 2022-04-01 10:17:48 -04:00
hooks Upgrade to rn 0.66.1 (#5727) 2021-10-31 13:57:07 -03:00
i18n Add linter rules for import order and type member delimiters (#5514) 2021-07-23 11:06:04 +02:00
init Make iOS notifications compatible with background fetch (#5969) 2022-02-16 22:58:01 -03:00
mattermost_bucket iOS Native Share Extension (Swift) (#2575) 2019-02-26 14:31:57 -03:00
mattermost_managed Add linter rules for import order and type member delimiters (#5514) 2021-07-23 11:06:04 +02:00
mm-redux Latex rendering with react-native-math-view (#5651) 2022-04-19 09:16:38 -04:00
notification_preferences Deps update (#3806) 2020-01-20 13:20:03 -03:00
products/calls MM-42320: Calls - Fix for: iOS loses calls audio after leaving 1st call and entering next (#6143) 2022-04-11 12:03:44 -04:00
reducers MM-38784, MM-38409 New messages line in threads screen & Pull to refresh for global threads screen (#5690) 2021-10-07 15:14:34 +05:30
screens Latex rendering with react-native-math-view (#5651) 2022-04-19 09:16:38 -04:00
selectors MM-38784, MM-38409 New messages line in threads screen & Pull to refresh for global threads screen (#5690) 2021-10-07 15:14:34 +05:30
store V1 dependencies and bump to RN 0.67.2 (#5908) 2022-02-02 15:28:57 -03:00
styles [MM-31177] Use png over Compass icon for logo (#5008) 2020-12-09 22:16:29 -07:00
telemetry V1 dependencies and bump to RN 0.67.2 (#5908) 2022-02-02 15:28:57 -03:00
types Make iOS notifications compatible with background fetch (#5969) 2022-02-16 22:58:01 -03:00
utils Latex rendering with react-native-math-view (#5651) 2022-04-19 09:16:38 -04:00
mattermost.js Disable logbox when RUNNING_E2E=true (#5831) 2021-11-15 13:58:23 -08:00
mattermost.test.js Excluding follow button in the header from being added to the stack (#5723) 2021-10-06 18:07:20 -04:00