mattermost-mobile/app/screens
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
..
about V1 dependencies and bump to RN 0.67.2 (#5908) 2022-02-02 15:28:57 -03:00
add_reaction Add linter rules for import order and type member delimiters (#5514) 2021-07-23 11:06:04 +02:00
apps_form [Apps Framework] Separate calls (#5877) 2022-03-24 11:03:06 -04:00
channel MM-42821 - Calls mobile: Default calls doesn't work on mobile (#6107) 2022-04-01 10:17:48 -04:00
channel_add_members V1 dependencies and bump to RN 0.67.2 (#5908) 2022-02-02 15:28:57 -03:00
channel_info MM-42320: Calls - small fix for microphone permissions (#6134) 2022-04-06 14:51:40 -04:00
channel_members V1 dependencies and bump to RN 0.67.2 (#5908) 2022-02-02 15:28:57 -03:00
channel_notification_preference V1 dependencies and bump to RN 0.67.2 (#5908) 2022-02-02 15:28:57 -03:00
code MM-39337 set allowFontScaling to TextInput components (#5751) 2021-10-14 13:42:09 -03:00
create_channel V1 dependencies and bump to RN 0.67.2 (#5908) 2022-02-02 15:28:57 -03:00
custom_status [MM-39149] Only close sidebar when custom status is set successfully (#5988) 2022-02-21 08:24:04 -03:00
custom_status_clear_after V1 dependencies and bump to RN 0.67.2 (#5908) 2022-02-02 15:28:57 -03:00
edit_channel MM-41909: Allow 1 char channel name (#6093) 2022-03-31 09:19:12 -03:00
edit_post V1 dependencies and bump to RN 0.67.2 (#5908) 2022-02-02 15:28:57 -03:00
edit_profile Remove all checks for minimum versions previous to 5.31 (#5572) 2021-09-06 12:57:24 +02:00
error_teams_list V1 dependencies and bump to RN 0.67.2 (#5908) 2022-02-02 15:28:57 -03:00
expanded_announcement_banner V1 dependencies and bump to RN 0.67.2 (#5908) 2022-02-02 15:28:57 -03:00
forgot_password V1 dependencies and bump to RN 0.67.2 (#5908) 2022-02-02 15:28:57 -03:00
gallery V1 dependencies and bump to RN 0.67.2 (#5908) 2022-02-02 15:28:57 -03:00
interactive_dialog V1 dependencies and bump to RN 0.67.2 (#5908) 2022-02-02 15:28:57 -03:00
latex Latex rendering with react-native-math-view (#5651) 2022-04-19 09:16:38 -04:00
login V1 dependencies and bump to RN 0.67.2 (#5908) 2022-02-02 15:28:57 -03:00
login_options [v1] Skip LoginOptions if only one SSO method is enabled (#6097) 2022-03-30 12:13:37 -03:00
mfa MM-39337 set allowFontScaling to TextInput components (#5751) 2021-10-14 13:42:09 -03:00
more_channels V1 dependencies and bump to RN 0.67.2 (#5908) 2022-02-02 15:28:57 -03:00
more_dms V1 dependencies and bump to RN 0.67.2 (#5908) 2022-02-02 15:28:57 -03:00
notification Update dependencies (#5870) 2021-12-15 16:44:35 +02:00
options_modal Fix options modal dismiss for OptionsModal (#5819) 2021-11-10 09:19:04 -03:00
participants_list V1 dependencies and bump to RN 0.67.2 (#5908) 2022-02-02 15:28:57 -03:00
perf_metrics [MM-37553] Update default themes (#5648) 2021-09-03 10:50:24 -04:00
permalink MM-37517 Thread permalink (#5758) 2022-02-03 12:48:43 -03:00
pinned_posts V1 dependencies and bump to RN 0.67.2 (#5908) 2022-02-02 15:28:57 -03:00
plugin MM-34811 Add plugin oauth support (#5395) 2021-09-27 18:17:56 +02:00
post_options [Apps Framework] Separate calls (#5877) 2022-03-24 11:03:06 -04:00
reaction_list V1 dependencies and bump to RN 0.67.2 (#5908) 2022-02-02 15:28:57 -03:00
recent_mentions V1 dependencies and bump to RN 0.67.2 (#5908) 2022-02-02 15:28:57 -03:00
saved_posts V1 dependencies and bump to RN 0.67.2 (#5908) 2022-02-02 15:28:57 -03:00
search V1 dependencies and bump to RN 0.67.2 (#5908) 2022-02-02 15:28:57 -03:00
select_server [v1] Skip LoginOptions if only one SSO method is enabled (#6097) 2022-03-30 12:13:37 -03:00
select_team V1 dependencies and bump to RN 0.67.2 (#5908) 2022-02-02 15:28:57 -03:00
selector_screen V1 dependencies and bump to RN 0.67.2 (#5908) 2022-02-02 15:28:57 -03:00
settings [MM-42533] Fix hidden custom theme (#6054) 2022-03-17 19:36:57 -03:00
slide_up [MM-37553] Update default themes (#5648) 2021-09-03 10:50:24 -04:00
sso [v1] Skip LoginOptions if only one SSO method is enabled (#6097) 2022-03-30 12:13:37 -03:00
table Add linter rules for import order and type member delimiters (#5514) 2021-07-23 11:06:04 +02:00
terms_of_service [MM-37553] Update default themes (#5648) 2021-09-03 10:50:24 -04:00
thread use feature flag when fetching thread bindings (#6018) 2022-03-22 23:03:03 -04:00
thread_options MM-34842 global threads options (#5630) 2021-10-11 13:24:38 +05:30
user_profile V1 dependencies and bump to RN 0.67.2 (#5908) 2022-02-02 15:28:57 -03:00
index.js Latex rendering with react-native-math-view (#5651) 2022-04-19 09:16:38 -04:00