mattermost-mobile/app/mm-redux/types
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.ts V1 dependencies and bump to RN 0.67.2 (#5908) 2022-02-02 15:28:57 -03:00
alerts.ts [MM-23520] Port mattermost-redux (#4088) 2020-03-31 11:09:26 -07:00
apps.ts [MM-34233] Only refresh App bindings if apps plugin is enabled (#5673) 2022-03-28 13:45:29 -04:00
bots.ts Add eslint eol-last to require newline at end of files (#4985) 2020-11-30 21:46:05 -07:00
channel_categories.ts Local only collapse state for mobile (#5721) 2021-10-08 09:32:31 -03:00
channels.ts [MM-34415, MM-34808, MM-34572, MM-34385, MM-32445, MM-31525] Handle user and channel provider from the app parser (#5503) 2021-08-17 10:45:49 +02:00
client4.ts [MM-23520] Port mattermost-redux (#4088) 2020-03-31 11:09:26 -07:00
config.ts Latex rendering with react-native-math-view (#5651) 2022-04-19 09:16:38 -04:00
data_retention.ts MM-33580 Granular Data Retention (#5330) 2021-07-15 18:47:48 +05:30
emojis.ts V1 dependencies and bump to RN 0.67.2 (#5908) 2022-02-02 15:28:57 -03:00
errors.ts [MM-23520] Port mattermost-redux (#4088) 2020-03-31 11:09:26 -07:00
files.ts V1 dependencies and bump to RN 0.67.2 (#5908) 2022-02-02 15:28:57 -03:00
general.ts V1 dependencies and bump to RN 0.67.2 (#5908) 2022-02-02 15:28:57 -03:00
groups.ts V1 dependencies and bump to RN 0.67.2 (#5908) 2022-02-02 15:28:57 -03:00
index.ts Voicechannels (#5753) 2021-11-11 11:32:39 +01:00
integration_actions.ts Feature - Cloud Apps (#5226) 2021-03-22 18:02:06 -04:00
integrations.ts V1 dependencies and bump to RN 0.67.2 (#5908) 2022-02-02 15:28:57 -03:00
message_attachments.ts Migrate message attachments to typescript (#5127) 2021-04-22 18:21:44 -04:00
module.d.ts MM-34586 Custom status feature (#5220) 2021-06-04 08:54:31 -04:00
plugins.ts [MM-23520] Port mattermost-redux (#4088) 2020-03-31 11:09:26 -07:00
posts.ts V1 dependencies and bump to RN 0.67.2 (#5908) 2022-02-02 15:28:57 -03:00
preferences.ts [MM-37553] Update default themes (#5648) 2021-09-03 10:50:24 -04:00
reactions.ts [MM-23520] Port mattermost-redux (#4088) 2020-03-31 11:09:26 -07:00
remote_cluster.ts MM-32921 shared channels (#5241) 2021-05-24 16:07:47 +05:30
requests.ts Feat crt (#5455) 2021-07-21 22:58:04 +05:30
roles.ts V1 dependencies and bump to RN 0.67.2 (#5908) 2022-02-02 15:28:57 -03:00
search.ts V1 dependencies and bump to RN 0.67.2 (#5908) 2022-02-02 15:28:57 -03:00
store.ts V1 dependencies and bump to RN 0.67.2 (#5908) 2022-02-02 15:28:57 -03:00
teams.ts Add linter rules for import order and type member delimiters (#5514) 2021-07-23 11:06:04 +02:00
theme.ts [MM-37553] Update default themes (#5648) 2021-09-03 10:50:24 -04:00
threads.ts Feat crt (#5455) 2021-07-21 22:58:04 +05:30
typing.ts [MM-23520] Port mattermost-redux (#4088) 2020-03-31 11:09:26 -07:00
users.ts V1 dependencies and bump to RN 0.67.2 (#5908) 2022-02-02 15:28:57 -03:00
utilities.ts Add eslint eol-last to require newline at end of files (#4985) 2020-11-30 21:46:05 -07:00
websocket.ts Add eslint eol-last to require newline at end of files (#4985) 2020-11-30 21:46:05 -07:00