Skip to content

[IMPROVE] Add support to Linebreak and Katex on markdown - #4361

Merged
dnlsilva merged 11 commits into
developfrom
fix-new-markdown
Jul 20, 2022
Merged

[IMPROVE] Add support to Linebreak and Katex on markdown#4361
dnlsilva merged 11 commits into
developfrom
fix-new-markdown

Conversation

@dnlsilva

@dnlsilva dnlsilva commented Jul 13, 2022

Copy link
Copy Markdown
Contributor

Proposed changes

Fixes the issue of texts in markdown not skipping lines when the component is Code, and the spacing when having a line break.
Add KaTeX support.

Issue(s)

Closes #1973

How to test or reproduce

  • View any message with spacing or inline code.
  • Test KaTeX text.
    Send this message to other user:
\[ f(x) = \int_{-\infty}^\infty \hat f(\xi)\,e^{2 \pi i \xi x} \,d\xi \]

Screenshots

Before:
Screen Shot 2022-07-13 at 09 55 05

After:
Screen Shot 2022-07-13 at 09 54 45

Types of changes

  • Bugfix (non-breaking change which fixes an issue)
  • Improvement (non-breaking change which improves a current function)
  • New feature (non-breaking change which adds functionality)
  • Documentation update (if none of the other choices apply)

Checklist

  • I have read the CONTRIBUTING doc
  • I have signed the CLA
  • Lint and unit tests pass locally with my changes
  • I have added tests that prove my fix is effective or that my feature works (if applicable)
  • I have added necessary documentation (if applicable)
  • Any dependent changes have been merged and published in downstream modules

Further comments

Inline KaTeX is currently not supported due to parse issues, however there is an open issue:
RocketChat/fuselage#775

@dnlsilva dnlsilva changed the title [IMPROVE] Add LineBreak markdown component and fixes Code markdown component [IMPROVE] Add LineBreak and fixes Code on markdown component ++ Add KaTeX support Jul 13, 2022
Comment thread app/containers/markdown/new/Katex.tsx Outdated
Comment thread app/containers/markdown/new/Katex.tsx Outdated
Comment thread app/containers/markdown/new/Katex.tsx
@diegolmello diegolmello changed the title [IMPROVE] Add LineBreak and fixes Code on markdown component ++ Add KaTeX support [IMPROVE] Add support to Linebreak and Katex on markdown Jul 18, 2022
@dnlsilva
dnlsilva merged commit 376c8e8 into develop Jul 20, 2022
@dnlsilva
dnlsilva deleted the fix-new-markdown branch July 20, 2022 21:02
diegolmello pushed a commit that referenced this pull request Sep 12, 2022
* fix enableMessageParser logic

* create LineBreak component

* fix code style

* add KaTeX support

* add Katex and Inline Katex stories

* update snapshots

* add color prop

* update snapshot

* update snapshot
navislavo pushed a commit to NextiaDev/Rocket.Chat.ReactNative that referenced this pull request May 26, 2023
…4361)

* fix enableMessageParser logic

* create LineBreak component

* fix code style

* add KaTeX support

* add Katex and Inline Katex stories

* update snapshots

* add color prop

* update snapshot

* update snapshot
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[NEW] KaTeX Support

2 participants