mattermost-mobile/app/components
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
..
__mocks__ [MM-9454] Added fade to send button (#2677) 2019-04-29 07:54:00 -07:00
__snapshots__ Voicechannels (#5753) 2021-11-11 11:32:39 +01:00
announcement_banner [MM-37553] Update default themes (#5648) 2021-09-03 10:50:24 -04:00
at_mention V1 dependencies and bump to RN 0.67.2 (#5908) 2022-02-02 15:28:57 -03:00
attachment_button V1 dependencies and bump to RN 0.67.2 (#5908) 2022-02-02 15:28:57 -03:00
autocomplete [MM-34233] Only refresh App bindings if apps plugin is enabled (#5673) 2022-03-28 13:45:29 -04:00
autocomplete_selector MM-34194 Add multiselect to Apps Forms (#5400) 2021-10-27 11:35:11 +02:00
avatars Update dependencies (#5870) 2021-12-15 16:44:35 +02:00
channel_intro Add linter rules for import order and type member delimiters (#5514) 2021-07-23 11:06:04 +02:00
channel_link V1 dependencies and bump to RN 0.67.2 (#5908) 2022-02-02 15:28:57 -03:00
channel_loader V1 dependencies and bump to RN 0.67.2 (#5908) 2022-02-02 15:28:57 -03:00
compass_icon Add linter rules for import order and type member delimiters (#5514) 2021-07-23 11:06:04 +02:00
custom_list Upgrade to rn 0.66.1 (#5727) 2021-10-31 13:57:07 -03:00
custom_status Update dependencies (#5686) 2021-09-22 13:54:12 -03:00
edit_channel_info MM-41909: Allow 1 char channel name (#6093) 2022-03-31 09:19:12 -03:00
emoji Remove all checks for minimum versions previous to 5.31 (#5572) 2021-09-06 12:57:24 +02:00
emoji_picker V1 dependencies and bump to RN 0.67.2 (#5908) 2022-02-02 15:28:57 -03:00
error_list V1 dependencies and bump to RN 0.67.2 (#5908) 2022-02-02 15:28:57 -03:00
error_text [MM-37553] Update default themes (#5648) 2021-09-03 10:50:24 -04:00
failed_network_action [MM-37553] Update default themes (#5648) 2021-09-03 10:50:24 -04:00
friendly_date FriendlyDate component - Round dates to nearest 10th before taking floor (#6082) 2022-03-22 14:31:18 -03:00
global_threads V1 dependencies and bump to RN 0.67.2 (#5908) 2022-02-02 15:28:57 -03:00
interactive_dialog_controller V1 dependencies and bump to RN 0.67.2 (#5908) 2022-02-02 15:28:57 -03:00
layout/keyboard_layout Add linter rules for import order and type member delimiters (#5514) 2021-07-23 11:06:04 +02:00
load_more_posts Fix upside down loading message text while scrolling the post list (#5647) 2021-08-31 09:41:34 -04:00
markdown Latex rendering with react-native-math-view (#5651) 2022-04-19 09:16:38 -04:00
network_indicator V1 dependencies and bump to RN 0.67.2 (#5908) 2022-02-02 15:28:57 -03:00
post_draft [Apps Framework] Separate calls (#5877) 2022-03-24 11:03:06 -04:00
post_list MM-42623 - Calls: remove Feature Flag (#6091) 2022-03-29 10:54:29 -04:00
profile_picture [MM-37553] Update default themes (#5648) 2021-09-03 10:50:24 -04:00
progressive_image V1 dependencies and bump to RN 0.67.2 (#5908) 2022-02-02 15:28:57 -03:00
radio_button [MM-37553] Update default themes (#5648) 2021-09-03 10:50:24 -04:00
reaction_picker V1 dependencies and bump to RN 0.67.2 (#5908) 2022-02-02 15:28:57 -03:00
refresh_list Add linter rules for import order and type member delimiters (#5514) 2021-07-23 11:06:04 +02:00
retriable_fast_image V1 dependencies and bump to RN 0.67.2 (#5908) 2022-02-02 15:28:57 -03:00
retry_bar_indicator Add linter rules for import order and type member delimiters (#5514) 2021-07-23 11:06:04 +02:00
root V1 dependencies and bump to RN 0.67.2 (#5908) 2022-02-02 15:28:57 -03:00
safe_area_view V1 dependencies and bump to RN 0.67.2 (#5908) 2022-02-02 15:28:57 -03:00
search_bar V1 dependencies and bump to RN 0.67.2 (#5908) 2022-02-02 15:28:57 -03:00
sidebars MM-42623 - Calls: remove Feature Flag (#6091) 2022-03-29 10:54:29 -04:00
slide_up_panel Add linter rules for import order and type member delimiters (#5514) 2021-07-23 11:06:04 +02:00
status_bar Add linter rules for import order and type member delimiters (#5514) 2021-07-23 11:06:04 +02:00
team_icon [MM-37553] Update default themes (#5648) 2021-09-03 10:50:24 -04:00
touchable_with_feedback Add linter rules for import order and type member delimiters (#5514) 2021-07-23 11:06:04 +02:00
user_status [MM-37553] Update default themes (#5648) 2021-09-03 10:50:24 -04:00
widgets/settings V1 dependencies and bump to RN 0.67.2 (#5908) 2022-02-02 15:28:57 -03:00
app_version.tsx Add eslint eol-last to require newline at end of files (#4985) 2020-11-30 21:46:05 -07:00
badge.js Add linter rules for import order and type member delimiters (#5514) 2021-07-23 11:06:04 +02:00
badge.test.js Add linter rules for import order and type member delimiters (#5514) 2021-07-23 11:06:04 +02:00
channel_icon.tsx [MM-37553] Update default themes (#5648) 2021-09-03 10:50:24 -04:00
conditional_touchable.js Fix propTypes warnings (#5285) 2021-04-06 21:18:31 -04:00
deleted_post.js Add linter rules for import order and type member delimiters (#5514) 2021-07-23 11:06:04 +02:00
fade.js Add linter rules for import order and type member delimiters (#5514) 2021-07-23 11:06:04 +02:00
fade.test.js Add linter rules for import order and type member delimiters (#5514) 2021-07-23 11:06:04 +02:00
formatted_date.tsx Post List & post components refactored (#5409) 2021-06-03 11:12:15 -07:00
formatted_markdown_text.js V1 dependencies and bump to RN 0.67.2 (#5908) 2022-02-02 15:28:57 -03:00
formatted_relative_time.test.js Voicechannels (#5753) 2021-11-11 11:32:39 +01:00
formatted_relative_time.tsx Voicechannels (#5753) 2021-11-11 11:32:39 +01:00
formatted_text.tsx Add linter rules for import order and type member delimiters (#5514) 2021-07-23 11:06:04 +02:00
formatted_time.test.js Add linter rules for import order and type member delimiters (#5514) 2021-07-23 11:06:04 +02:00
formatted_time.tsx Post List & post components refactored (#5409) 2021-06-03 11:12:15 -07:00
image_viewport.tsx Upgrade to rn 0.66.1 (#5727) 2021-10-31 13:57:07 -03:00
loading.js Add linter rules for import order and type member delimiters (#5514) 2021-07-23 11:06:04 +02:00
no_results.js Add linter rules for import order and type member delimiters (#5514) 2021-07-23 11:06:04 +02:00
post_list_retry.js Add linter rules for import order and type member delimiters (#5514) 2021-07-23 11:06:04 +02:00
post_separator.js Add linter rules for import order and type member delimiters (#5514) 2021-07-23 11:06:04 +02:00
profile_picture_button.js Add linter rules for import order and type member delimiters (#5514) 2021-07-23 11:06:04 +02:00
profile_picture_button.test.js [MM-37553] Update default themes (#5648) 2021-09-03 10:50:24 -04:00
progress_bar.tsx Gallery Improvements (#4837) 2020-11-06 21:17:27 -03:00
remove_markdown.js MM-28602 Fix announcement banner crash if it includes a hashtag (#4808) 2020-09-15 10:03:40 -03:00
swiper.js Add linter rules for import order and type member delimiters (#5514) 2021-07-23 11:06:04 +02:00
swiper.test.js Add linter rules for import order and type member delimiters (#5514) 2021-07-23 11:06:04 +02:00
tag.js Add linter rules for import order and type member delimiters (#5514) 2021-07-23 11:06:04 +02:00
text_input_with_localized_placeholder.js V1 dependencies and bump to RN 0.67.2 (#5908) 2022-02-02 15:28:57 -03:00
vector_icon.js MM-23570 Migrate from Segment to Rudder (#4293) 2020-05-13 16:54:07 -04:00